mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
[Backport release-26.05] nixos/resolved: apply transformations to keys within resolved section (#544736)
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