From 66353ca989dd68b3070f8932c048860e8354bc01 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 26 Jun 2026 15:04:19 +0200 Subject: [PATCH] nixos/resolved: apply transformations to keys within resolved section Because all options are below the [Resolve] section, and we nest them as such below `settings.Resolve` we need to apply the transformations one level down for it to match the relevant keys. --- 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 da2b57285a76..78863eb82b4d 100644 --- a/nixos/modules/system/boot/resolved.nix +++ b/nixos/modules/system/boot/resolved.nix @@ -30,9 +30,8 @@ let dnsmasqResolve = config.services.dnsmasq.enable && config.services.dnsmasq.resolveLocalQueries; - transformSettings = - settings: - lib.mapAttrs ( + transformSettings = settings: { + Resolve = lib.mapAttrs ( key: value: # concat lists for options that should result in space-separated values if @@ -46,7 +45,8 @@ let concatStringsSep " " value else value - ) settings; + ) settings.Resolve; + }; resolvedConf = settingsToSections (transformSettings cfg.settings); in