diff --git a/nixos/modules/programs/nncp.nix b/nixos/modules/programs/nncp.nix index 6ac0363e50a0..08485f0dfc87 100644 --- a/nixos/modules/programs/nncp.nix +++ b/nixos/modules/programs/nncp.nix @@ -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} ''; };