!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

907 Members
Declaratively manage your switching, routing, wireless, tunneling and more.262 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@elvishjerricco:matrix.orgElvishJerriccowe can make changes to abstraction implementations04:35:38
@emilazy:matrix.orgemilyI still think hardware-configuration is a red herring here04:35:49
@hexa:lossy.networkhexaThe users that use the unmaintained shit don't maintain the abstractions04:35:53
@elvishjerricco:matrix.orgElvishJerricco it's literally the only thing nixos-generate-config is about? 04:36:02
@emilazy:matrix.orgemily"I want DHCP by default" is configuration.nix not hardware-configuration.nix teritory04:36:04
@hexa:lossy.networkhexaWhatever we give as a configuration.nix is mutable by default04:36:14
@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

Show newer messages


Back to Room ListRoom Version: 6