!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

919 Members
Declaratively manage your switching, routing, wireless, tunneling and more.267 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@emilazy:matrix.orgemily the average user has fairly dynamic networking configuration anyway 04:43:56
@emilazy:matrix.orgemilyWiFi etc.04:43:59
@hexa:lossy.networkhexawe ship with mutableUsers = false as well 😛 04:44:00
@emilazy:matrix.orgemily well that's unforgivable 04:44:08
@emilazy:matrix.orgemilyalso the source of more new user confusion than benefit probably :p04:44:23
@hexa:lossy.networkhexawe should just stateVersion that tbh 😛 04:44:29
@emilazy:matrix.orgemilyjust today I had to tell someone why they couldn't change their password in their config04:44:35
@hexa:lossy.networkhexayes, abuse of stateVersion, but.04:44:36
@elvishjerricco:matrix.orgElvishJerricco so, do we just add networking.networkmanager.enable = true; to configuration.nix in nixos-generate-config? 04:44:56
@uep:matrix.orguepusedhcp 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 way04:45:16
@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

Show newer messages


Back to Room ListRoom Version: 6