!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

911 Members
Declaratively manage your switching, routing, wireless, tunneling and more.264 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@emilazy:matrix.orgemilyand there's no promise that configuration.nix never has to change04:36:15
@hexa:lossy.networkhexaAnd everyone manages to enable network manager on their laptop as well04:36:29
@hexa:lossy.networkhexaor not, idk04:36:32
@emilazy:matrix.orgemily
In reply to @elvishjerricco:matrix.org
it's literally the only thing nixos-generate-config is about?
it generates a configuration.nix too, does it not?
04:36:40
@emilazy:matrix.orgemilyI haven't actually run it in years04:36:46
@elvishjerricco:matrix.orgElvishJerricco I mean if you just want to move all networking stuff out of hardware-configuration.nix altogether that's a different thing. 04:36:52
@hexa:lossy.networkhexaRedacted or Malformed Event04:36:59
@hexa:lossy.networkhexaRedacted or Malformed Event04:37:02
@elvishjerricco:matrix.orgElvishJerricco networking.useDHCP = lib.mkDefault true; goes in hardware-configuration.nix 04:37:27
@hexa:lossy.networkhexasorry, I might be wrong04:37:31
@hexa:lossy.networkhexa that's stupid to have in hardware parts 04:37:40
@emilazy:matrix.orgemilythings that aren't hardware config should certainly not be in there04:37:47
@emilazy:matrix.orgemilyso that is more reason to change the generator :P04:38:01
@hexa:lossy.networkhexaif we wanted that to be a default, why not set the default in nixpkgs 😄 04:38:12
@emilazy:matrix.orgemilyI guess it actually is hardware-y right now04:38:29
@emilazy:matrix.orgemilybecause it iterates over /sys04:38:36
@emilazy:matrix.orgemilywhich your change fixes04:38:41
@uep:matrix.orguepi agree but it's some kind of workaround for arguments about the default04:38:52
@uep:matrix.orguep(the details of which I forget)04:39:03
@emilazy:matrix.orgemilythat's also another reason to change it because enumerating only the interfaces that exist at installation to enable DHCP is...04:39:04
@emilazy:matrix.orgemilyjust...04:39:09
@elvishjerricco:matrix.orgElvishJerricco Ok, well if we move it to configuration.nix, we have a different problem that also encourages keeping the abstraction: That file is meant to be the user's introduction to NixOS configuration. It should not contain scary implementation details. 04:39:29
@hexa:lossy.networkhexaI really think we need to confront new users with networking 😄 04:39:35
@elvishjerricco:matrix.orgElvishJerricco that isn't how it works with useNetworkd 04:39:45
@hexa:lossy.networkhexaits just not okay to treat them with kids gloves04:39:45
@emilazy:matrix.orgemilythey're not scary implementation details04:39:53
@emilazy:matrix.orgemilyit's intended UI04:40:07
@emilazy:matrix.orgemilyif we think the UI is bad we can ship NM or whatever instead04:40:28
@elvishjerricco:matrix.orgElvishJerricco Everything else we generate in configuration.nix is intended to be very simple and friendly. A networkd config is definitely lower level than anything else we put in there 04:40:42
@emilazy:matrix.orgemilybut we can't maintain our own version of every part of the stack04:40:48

Show newer messages


Back to Room ListRoom Version: 6