!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

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

Load older messages


SenderMessageTime
29 Jun 2025
@emilazy:matrix.orgemilydoes useNetworkd avoid enabling networkd in that case?04:47:48
@elvishjerricco:matrix.orgElvishJerriccoI mean this is already a threat with graphical installs since they enable networkmanager by default04:48:07
@emilazy:matrix.orgemilyI 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 out04:48:08
@elvishjerricco:matrix.orgElvishJerriccoand it's not been a problem04:48:11
@hexa:lossy.networkhexawe ship with networkd either way04:48:11
@hexa:lossy.networkhexaand it will have no config files, so it will not match anything04:48:19
@emilazy:matrix.orgemily
In reply to @hexa:lossy.network
we ship with networkd either way
not enabled
04:48:21
@emilazy:matrix.orgemilybut fair04:48:26
@hexa:lossy.networkhexayeah, not sure about enable toggle, but it will be a noop04:48:40
@emilazy:matrix.orgemily
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:matrix.orgElvishJerricconope04:50:29
@emilazy:matrix.orgemilyok, well04:50:40
@elvishjerricco:matrix.orgElvishJerriccohttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/network-interfaces-systemd.nix#L56-L7504:50:50
@emilazy:matrix.orgemily 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
@emilazy:matrix.orgemily and put that in configuration.nix 04:51:22
@hexa:lossy.networkhexalolsob … manual metric tuning04:51:25
@hexa:lossy.networkhexanetworkmanager to the rescue04:51:28
@emilazy:matrix.orgemilyand then work on killing stuff04:51:35
@hexa:lossy.networkhexadwim?04:51:50
@hexa:lossy.networkhexado what i mean … TIL04:51:59
@emilazy:matrix.orgemilybecause 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 better04:52:08
@emilazy:matrix.orgemilylike I know I said we can just ship NM flippantly but04:52:20
@emilazy:matrix.orgemily
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:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/287105/files#diff-5b2af92bb7a76b393caed4ac22ccabe6468396542e2afbed28d92fe0e8c933afR613-R61404:52:40
@hexa:lossy.networkhexathat's what this config is04:52:48
@emilazy:matrix.orgemily if we can make the DHCP default not do the dumb thing and also move it out of networking.* 04:52:56
@emilazy:matrix.orgemilywin win04:53:01
@hexa:lossy.networkhexait enables DHCP on ethernet and wlan04:53:14
@hexa:lossy.networkhexabut doesn't take care of setting up WLAN04:53:20
@elvishjerricco:matrix.orgElvishJerriccoI 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 it04:53:21

Show newer messages


Back to Room ListRoom Version: 6