libnm: init, libproxy: use libnm instead of full networkmanager#241762
libnm: init, libproxy: use libnm instead of full networkmanager#241762SuperSandro2000 wants to merge 2 commits intoNixOS:stagingfrom
Conversation
|
I think this makes sense in theory but for Nix, we probably care about build closure, so it will likely need more work. Do you have numbers on the runtime closure reduction? Why are you using separate flag for plug-ins? |
this is only about runtime closure.
🤷🏼 removed it again |
Right. But I am questioning whether this change, which adds a lot of complexity to the expression, has any use case as is. Because I believe that Nix cares about build time closure of its dependencies. Please correct me if I am mistaken. |
to reduce closure size
Also runtime closure, see NixOS/nix#8648 . We don't need to add 200MB of extra dependencies to nix which aren't really needed and also other distros do this split. |
|
Well, runtime closure improvements are useless if you cannot use the dependency due to build closure size. |
|
I am not sure which parts you exactly mean. Can you give an example? As far as I understood the linked issue this should fix the mentioned problem. If I didn't understood it correctly please point me at the detail I missed. |
|
The issue just talks about closure size. I understand that to refer to build closure. |
| # for nmtui | ||
| newt | ||
| readline | ||
| # for plugins | ||
| bluez5 | ||
| dnsmasq | ||
| modemmanager | ||
| readline | ||
| newt | ||
| libsoup | ||
| jansson | ||
| dbus # used to get directory paths with pkg-config during configuration | ||
| mobile-broadband-provider-info | ||
| modemmanager |
There was a problem hiding this comment.
I moved most plugin dependencies out here, so build and runtime closure size should both be significant smaller now.
|
Maybe we should instead bump libproxy – the latest version does not appear to use libnm. |
|
did that in #272353 |
|
The networkmanager closure is just terrifyingly large, depending on openconnect, systemd, dnsmasq among other things. For people like me that uses nix as a package manager (not NixOS), these are all dead weight 😭 And it seems that the libproxy bump turns out to be non-trivial... Can we merge this first before that is sorted out? 🥺 Because other apps that depend on networkmanager can also benefit from switching to libnm. |
|
Hopefully, libproxy will not take much longer. |
|
No longer needed with #272353 |
Description of changes
@jtojnar do you have any comments about this?
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)