NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

gnome3 enables networkmanager, which disables useDHCP, which breaks initrd network #50832

Open andersk opened 5 years ago

andersk commented 5 years ago

Issue description

On a system with initrd networking configured with DHCP, if you change services.xserver.desktopManager.gnome3.enable to true, suddenly

You might agree that this is a surprising consequence of enabling a desktop environment.

Technical details

andersk commented 5 years ago

@volth #46459 was not backported to 18.09. (The scenario I’m describing really happened to my 18.09 system, it’s not hypothetical.)

jahkeup commented 5 years ago

I agree, NetworkManager enabled as a side effect of enabling a desktop manager is surprising to say the least. To me, this was especially confusing as I was enabling and configuring dhcpcd and configuring for appropriate interfaces - which was working up until I enabled gnome3 for another user.

I'm not positive how exactly, but it would seem as though the config's intent to configure another network "utility/daemon/manager" could result in NetworkManager /not/ being enabled.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
jaen commented 3 years ago

Just came across that when trying to add SSH LUKS unlocking to a machine that uses NetworkManager.