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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user