We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caae41c commit 750d886Copy full SHA for 750d886
1 file changed
programs/sops.nix
@@ -29,8 +29,7 @@ in
29
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: secret: ''
30
if [ -n "${secret.path or ""}" ] && [ ! -e "${secret.path}" ]; then
31
mkdir -p "$(dirname "${secret.path}")"
32
- $DRY_RUN_CMD ${pkgs.sops}/bin/sops --decrypt \
33
- --age-key-file "${cfg.age.keyFile}" \
+ SOPS_AGE_KEY_FILE="${cfg.age.keyFile}" $DRY_RUN_CMD ${pkgs.sops}/bin/sops --decrypt \
34
--extract '["${lib.replaceStrings ["/"] ["\"][\""] name}"]' \
35
${secret.sopsFile} > "${secret.path}" 2>/dev/null || true
36
chmod ${secret.mode or "0600"} "${secret.path}"
0 commit comments