diff --git a/nixos/modules/system/boot/resolved.nix b/nixos/modules/system/boot/resolved.nix index 5e4dbe7d97f1..966ddd396e11 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,10 +46,9 @@ let concatStringsSep " " value else value - ) settings.Resolve; - }; + ) settings; - resolvedConf = settingsToSections (transformSettings cfg.settings); + resolvedConf = settingsToSections { Resolve = transformSettings cfg.settings.Resolve; }; in { imports = [