nixos/nncp: recursively merge configurations
This commit is contained in:
parent
2e9c42e1c8
commit
50bbfb5788
@ -79,7 +79,7 @@ in {
|
||||
for f in ${jsonCfgFile} ${builtins.toString config.programs.nncp.secrets}
|
||||
do
|
||||
${lib.getExe pkgs.hjson-go} -c <"$f"
|
||||
done |${lib.getExe pkgs.jq} --slurp add >${nncpCfgFile}
|
||||
done |${lib.getExe pkgs.jq} --slurp 'reduce .[] as $x ({}; . * $x)' >${nncpCfgFile}
|
||||
chgrp ${programCfg.group} ${nncpCfgFile}
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user