From 9f42db501a7ed2b7fb6094f335e5b56e9b30816b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 24 Jul 2026 23:01:22 +0200 Subject: [PATCH 1/2] Revert "nixos/resolved: apply transformations to keys within resolved section" This reverts commit 66353ca989dd68b3070f8932c048860e8354bc01. In the meantime a new option was added that consumes the `transformSettings` function, which broke by looking at just at the Resolve section. --- nixos/modules/system/boot/resolved.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/system/boot/resolved.nix b/nixos/modules/system/boot/resolved.nix index 5e4dbe7d97f1..6760dab044e9 100644 --- a/nixos/modules/system/boot/resolved.nix +++ b/nixos/modules/system/boot/resolved.nix @@ -30,8 +30,9 @@ let dnsmasqResolve = config.services.dnsmasq.enable && config.services.dnsmasq.resolveLocalQueries; - transformSettings = settings: { - Resolve = lib.mapAttrs ( + transformSettings = + settings: + lib.mapAttrs ( key: value: # concat lists for options that should result in space-separated values if @@ -45,8 +46,7 @@ let concatStringsSep " " value else value - ) settings.Resolve; - }; + ) settings; resolvedConf = settingsToSections (transformSettings cfg.settings); in From 4e2415b3c27f305c0b809e8a25f65b2e76d46067 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 24 Jul 2026 23:20:46 +0200 Subject: [PATCH 2/2] nixos/systemd-resolved: apply transformation to resolve section In a previous change the transformSettings function was modified to look at the Resolve section, but since it got a second consumer in the mean time this regressed. We now target the resolved.conf explicitly instead. --- nixos/modules/system/boot/resolved.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/resolved.nix b/nixos/modules/system/boot/resolved.nix index 6760dab044e9..966ddd396e11 100644 --- a/nixos/modules/system/boot/resolved.nix +++ b/nixos/modules/system/boot/resolved.nix @@ -48,7 +48,7 @@ let value ) settings; - resolvedConf = settingsToSections (transformSettings cfg.settings); + resolvedConf = settingsToSections { Resolve = transformSettings cfg.settings.Resolve; }; in { imports = [