!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

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

Load older messages


SenderMessageTime
29 Jun 2025
@emilazy:matrix.orgemily
In reply to @elvishjerricco:matrix.org
so, do we just add networking.networkmanager.enable = true; to configuration.nix in nixos-generate-config?
this is still a footgun if you use scripted networking options though
04:45:54
@hexa:lossy.networkhexawe are talking about new installs here04:46:10
@emilazy:matrix.orgemilyI know04:46:25
@emilazy:matrix.orgemilyI mean we still have to kill scripted networking04:46:34
@hexa:lossy.networkhexausers who are not on scripted stuff to begin with don't need to migrate 🙂 04:46:48
@hexa:lossy.networkhexaso this is a good change04:46:57
@emilazy:matrix.orgemilyyes but the options are right there for them to set and when we flip useNetworkd it'll get turned on for new users too04:47:15
@emilazy:matrix.orgemilyis my point04:47:18
@elvishjerricco:matrix.orgElvishJerricco Yea I'm pretty sure the scripted networking stuff is basically a noop if there is no networking.* configuration 04:47:21
@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

Show newer messages


Back to Room ListRoom Version: 6