| 29 Jun 2025 |
emily | so that is more reason to change the generator :P | 04:38:01 |
hexa | if we wanted that to be a default, why not set the default in nixpkgs 😄 | 04:38:12 |
emily | I guess it actually is hardware-y right now | 04:38:29 |
emily | because it iterates over /sys | 04:38:36 |
emily | which your change fixes | 04:38:41 |
uep | i agree but it's some kind of workaround for arguments about the default | 04:38:52 |
uep | (the details of which I forget) | 04:39:03 |
emily | that's also another reason to change it because enumerating only the interfaces that exist at installation to enable DHCP is... | 04:39:04 |
emily | just... | 04:39:09 |
ElvishJerricco | 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 | I really think we need to confront new users with networking 😄 | 04:39:35 |
ElvishJerricco | that isn't how it works with useNetworkd | 04:39:45 |
hexa | its just not okay to treat them with kids gloves | 04:39:45 |
emily | they're not scary implementation details | 04:39:53 |
emily | it's intended UI | 04:40:07 |
emily | if we think the UI is bad we can ship NM or whatever instead | 04:40:28 |
ElvishJerricco | 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 |
emily | but we can't maintain our own version of every part of the stack | 04:40:48 |
ElvishJerricco | It's literally just networking.useDHCP.... | 04:41:05 |
emily | In reply to @elvishjerricco:matrix.org 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 then let's default to NM which handles stuff OOTB without config? | 04:41:16 |
emily | In reply to @elvishjerricco:matrix.org It's literally just networking.useDHCP.... I'm fine with that option existing like I said | 04:41:33 |
emily | but I disagree with the idea that we can feasibly own all but the most trivial UX here | 04:42:03 |
emily | it's a deep domain knowledge area with a lot of modelling in the tools | 04:42:26 |
emily | we're not well positioned to maintain a UI to that any better than the projects already doing it | 04:42:42 |
hexa | so I missed that this was in hardware-configuration.nix to begin with | 04:42:45 |
ElvishJerricco | frankly, NM is kinda the simple default, which is why other distros default to it even on server installations. | 04:43:00 |
emily | I just said let's default to NM then :) | 04:43:14 |
hexa | yeah, then let's go for that | 04:43:19 |
emily | it's less NixOS-y but shrug | 04:43:40 |
emily | the average user has fairly dynamic networking configuration anyway | 04:43:56 |