Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make NetworkManager plugins optional #137338

Closed
piegamesde opened this issue Sep 11, 2021 · 2 comments · Fixed by #164531
Closed

Make NetworkManager plugins optional #137338

piegamesde opened this issue Sep 11, 2021 · 2 comments · Fixed by #164531

Comments

@piegamesde
Copy link
Member

Issue description

At the moment, the NixOS NetworkManager module includes all plugins that are packaged for NixOS. This is problematic on headless systems, because these modules pull in a ton of gnome dependencies (including gtk), which is not acceptable for a small headless device. I tried overriding those packages with withGnome = false, but they pull in too many graphical dependencies nevertheless.

An option to turn these off (in whatever way) would be appreciated.

Steps to reproduce

  1. networkmanager.enable = true;
  2. nix-tree path-to-derivation
  3. / (search) gtk
  4. w (why-depends)

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Ping maintainers

@NixOS/freedesktop

@piegamesde
Copy link
Member Author

I just came up with another issue with the current plugin implementation: there is no module-level way to override the packages of these plugins. Thus, the only way to achieve this is a global system overlay. However, this will cause a rebuild of all reverse-dependencies, which may not be desired.

@jtojnar
Copy link
Contributor

jtojnar commented Sep 11, 2021

See #84433 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants