!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

900 Members
on your Router! Declaratively manage your switching, routing, wireless, tunneling and more.268 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Jun 2025
@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

Show newer messages


Back to Room ListRoom Version: 6