From 50bbfb5788f82535cdd5046cf1aa7c9da588a258 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 21 Nov 2024 11:06:22 +0000 Subject: [PATCH] nixos/nncp: recursively merge configurations --- nixos/modules/programs/nncp.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} ''; };