mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nixos/nncp: recursively merge configurations
This commit is contained in:
parent
2e9c42e1c8
commit
50bbfb5788
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ in {
|
||||||
for f in ${jsonCfgFile} ${builtins.toString config.programs.nncp.secrets}
|
for f in ${jsonCfgFile} ${builtins.toString config.programs.nncp.secrets}
|
||||||
do
|
do
|
||||||
${lib.getExe pkgs.hjson-go} -c <"$f"
|
${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}
|
chgrp ${programCfg.group} ${nncpCfgFile}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue