| 29 Jun 2025 |
emily | does useNetworkd avoid enabling networkd in that case? | 04:47:48 |
ElvishJerricco | I mean this is already a threat with graphical installs since they enable networkmanager by default | 04:48:07 |
emily | I think every ten years we should get a flag day jubilee where we can break anything we want arbitrarily and existing users just kind of have to figure it out | 04:48:08 |
ElvishJerricco | and it's not been a problem | 04:48:11 |
hexa | we ship with networkd either way | 04:48:11 |
hexa | and it will have no config files, so it will not match anything | 04:48:19 |
emily | In reply to @hexa:lossy.network we ship with networkd either way not enabled | 04:48:21 |
emily | but fair | 04:48:26 |
hexa | yeah, not sure about enable toggle, but it will be a noop | 04:48:40 |
emily | In reply to @uep:matrix.org usedhcp is a fine default for a generic system with wired interfaces, regardless of which dhcp mechanism delivers the implementation. On a server, maybe you want static on at least some interfaces, so sure, you add config for those.
The issue is wireless. If a wireless interface appears, adding a dhcp client gets in the way of whatever mechanism the user is going to use to set ssid and keys, and so it has to get out of the way I thought our useDHCP default for networkd was wired only | 04:50:23 |
ElvishJerricco | nope | 04:50:29 |
emily | ok, well | 04:50:40 |
ElvishJerricco | https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/network-interfaces-systemd.nix#L56-L75 | 04:50:50 |
emily | what if we just introduce systemd.network.dwim = true; that ships the sane file for doing that that I think upstream has | 04:51:11 |
emily | and put that in configuration.nix | 04:51:22 |
hexa | lolsob … manual metric tuning | 04:51:25 |
hexa | networkmanager to the rescue | 04:51:28 |
emily | and then work on killing stuff | 04:51:35 |
hexa | dwim? | 04:51:50 |
hexa | do what i mean … TIL | 04:51:59 |
emily | because I feel like "oh yeah to declaratively configure that you want to turn off NM that the generated config has and switch to this" is maybe not actually better | 04:52:08 |
emily | like I know I said we can just ship NM flippantly but | 04:52:20 |
emily | In reply to @emilazy:matrix.org what if we just introduce systemd.network.dwim = true; that ships the sane file for doing that that I think upstream has not convinced it is actually better than ^ | 04:52:33 |
hexa | https://github.com/NixOS/nixpkgs/pull/287105/files#diff-5b2af92bb7a76b393caed4ac22ccabe6468396542e2afbed28d92fe0e8c933afR613-R614 | 04:52:40 |
hexa | that's what this config is | 04:52:48 |
emily | if we can make the DHCP default not do the dumb thing and also move it out of networking.* | 04:52:56 |
emily | win win | 04:53:01 |
hexa | it enables DHCP on ethernet and wlan | 04:53:14 |
hexa | but doesn't take care of setting up WLAN | 04:53:20 |
ElvishJerricco | I think NM works a lot better when you don't know what interfaces you're working with. networkd can do it but it's not really good at it | 04:53:21 |