| 29 Jun 2025 |
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 |
emily | does that break using NM for wlan? | 04:53:46 |
hexa | yeah, you need to understand the networkd config logic | 04:53:50 |
hexa | that 99-* applies last for example | 04:53:59 |
hexa | and is a catchall | 04:54:02 |
emily | I think we can just only ship the wired thing | 04:54:08 |
hexa | * and is a catchall for ether/wlan station | 04:54:13 |
hexa | as an example? | 04:54:23 |
emily | as systemd.network.wiredDHCP or something to ship by default in configs | 04:54:44 |
hexa | in which case I'd probably ship an example for DHCP/RA and one for Static Addressing | 04:54:52 |
emily | because WLAN users will turn on NM or else be in wpa_supplicant weeds and having exciting learning experiences anyway | 04:54:54 |
hexa | kindly, let's not scuff up that module, thanks | 04:55:07 |
ElvishJerricco | again, I really don't think networkd is the right tool if you aren't specifying your interfaces | 04:55:14 |