| 29 Jun 2025 |
emily | I think probably most people using networkd are using it through useNetworkd | 02:24:44 |
hexa | https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/network-interfaces-systemd.nix | 02:25:59 |
hexa | basically an implementation that needs to be worked at for changes on both sides | 02:26:34 |
hexa | frankly, I don't get why people hate networking so much | 02:26:44 |
hexa | most boxes have just a wan interface and throwing static addresses and a gateway on it isn't hard | 02:27:07 |
hexa | or do dhc | 02:27:13 |
hexa | * or do dhcp | 02:27:14 |
emily | I think useDHCP is a sufficient compatibility shim for probably the majority of NixOS boxes in existence | 02:27:32 |
emily | but in the absence of scripted networking I don't think this file is too bad either, it is mostly just simple option mapping | 02:28:03 |
emily | that openvswitch stuff is awful though :) | 02:28:10 |
hexa | it feels like a code drop introducing technical debt for the most part | 02:29:07 |
hexa | the awful part is that people will never migrate away from network.interfaces that way | 02:29:24 |
hexa | * the awful part is that people will never migrate away from networking.interfaces that way | 02:29:44 |
hexa | like, what would be so hard about just running networking.dhcpcd.enable with allowInterfaces = [ "eth0" ] instead of useDHCP? | 02:30:35 |
hexa | and why the hell is it usedhcp? | 02:30:59 |
hexa | * and why the hell is it useDHCP? | 02:31:19 |
emily | I thought networkd didn't use dhcpcd | 02:31:29 |
hexa | and not network.interfaces.<name>dhcp.enable | 02:31:33 |
hexa | it does not | 02:31:38 |
emily | I believe both exis? | 02:31:45 |
emily | * I believe both exist? | 02:31:46 |
hexa | I don't want to force people onto networkd | 02:31:47 |
hexa | * I don't want to force people onto networkd specifically | 02:31:49 |
hexa | I want to force them off of scripted networking | 02:31:57 |
emily | well, I think the idea of useNetworkd was precisely to be able to move everyone from scripted networking to networkd without having to break every single networking configuration in existence | 02:32:17 |
emily | I think it's a lot easier to sell a flag day when it doesn't break the most basic networking config | 02:32:32 |
emily | gradually deprecating the old stuff is going to be easier after everyone is already running an implementation backed by the migration path | 02:32:53 |
hexa | it boils down to us being bad at deprecating interfaces | 02:32:56 |
hexa | do you think we should support the old option interface indefinately then? | 02:33:21 |
hexa | * do you think we should support the old option interface indefinately then and just deprecated the backend? | 02:33:27 |