!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

915 Members
Declaratively manage your switching, routing, wireless, tunneling and more.265 Servers

Load older messages


SenderMessageTime
16 Jun 2025
@hexa:lossy.networkhexa should resolved maybe just assert on useLocalResolver? 04:32:22
@emilazy:matrix.orgemily it already asserts on resolvconf 04:32:56
@emilazy:matrix.orgemily do you actually see fighting over resolv.conf? 04:33:13
@emilazy:matrix.orgemilyor just the local one being ignored entirely04:33:17
@hexa:lossy.networkhexaone being ignored04:33:28
@emilazy:matrix.orgemilyright04:33:42
@emilazy:matrix.orgemily
          assertion = !config.networking.useHostResolvConf;
04:33:43
@hexa:lossy.networkhexa by fighting I mean kresd enabling useLocalResolver 04:33:45
@emma:rory.gay@emma:rory.gay me confingufing DNS via etc."resolv.conf" bypassing both resolved and resolvconf 👀 04:33:45
@emilazy:matrix.orgemilythis should probably be extended04:33:48
@hexa:lossy.networkhexaand not winning04:33:50
@emma:rory.gay@emma:rory.gay * me configuring DNS via etc."resolv.conf" bypassing both resolved and resolvconf 👀 04:33:59
@hexa:lossy.networkhexaso the fight is somewhere in the nixos logic04:34:01
@hexa:lossy.networkhexanot necessarily in the resolvconf logic04:34:06
@emilazy:matrix.orgemilyright04:34:10
@emilazy:matrix.orgemily I don't know if resolvconf + resolved is supported at all. if it's not, then the latter should probably assert on all of the former's options it doesn't implement 04:34:26
@emilazy:matrix.orgemily hmm, resolvconf has default = !(config.environment.etc ? "resolv.conf");, but no hard assertion against enabling it anyway 04:35:06
@emilazy:matrix.orgemily and the resolved module does networking.resolvconf.package = pkgs.systemd; 04:35:14
@hexa:lossy.networkhexadoes resolved just bypass the module system for resolv.conf?04:35:20
@emilazy:matrix.orgemily (for the resolvconf command) 04:35:30
@emilazy:matrix.orgemily no, it uses the module system to link it to the /run path 04:35:52
@emilazy:matrix.orgemily resolvconf bypasses it entirely 04:35:55
@emilazy:matrix.orgemily I think that we need an assertion preventing both services.resolved.enable and networking.resolvconf.enable 04:37:25
@emilazy:matrix.orgemily however I suspect in your case stuff is setting networking.resolvconf.useLocalResolver but not networking.resolvconf.enable explicitly 04:37:37
@hexa:lossy.networkhexaright04:37:38
@emilazy:matrix.orgemily so there's not an actual conflict, just networking.resolvconf.enable defaulting off because there's an explicit resolv.conf symlink because of services.resolved.enable 04:38:00
@emilazy:matrix.orgemily and I'm not sure if asserting on networking.resolvconf.useLocalResolver when !networking.resolvconf.enable makes sense 04:38:11
@emilazy:matrix.orgemilysince usually module options are meant to be inert if the module is not enabled04:38:18
@emilazy:matrix.orgemily(agreed that there's a UX issue here I'm just not sure what the best solution is)04:38:36
@emilazy:matrix.orgemily it might be best to move the useLocalResolver outside of the resolver services altogether 04:40:10

Show newer messages


Back to Room ListRoom Version: 6