Skip to content

Commit 9ba0d85

Browse files
authored
Merge pull request #343 from ryantm/rtm0804decryptparallel
decrypt-parallel
2 parents 2f0f812 + 540a4f1 commit 9ba0d85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/age.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ let
6868
'';
6969

7070
installSecret = secretType: ''
71+
(
7172
${setTruePath secretType}
7273
echo "decrypting '${secretType.file}' to '$_truePath'..."
7374
TMP_FILE="$_truePath.tmp"
@@ -98,6 +99,7 @@ let
9899
${optionalString secretType.symlink ''
99100
[ "${secretType.path}" != "${cfg.secretsDir}/${secretType.name}" ] && ln -sfT "${cfg.secretsDir}/${secretType.name}" "${secretType.path}"
100101
''}
102+
) &
101103
'';
102104

103105
testIdentities = map (path: ''
@@ -120,6 +122,7 @@ let
120122
[ "echo '[agenix] decrypting secrets...'" ]
121123
++ testIdentities
122124
++ (map installSecret (builtins.attrValues cfg.secrets))
125+
++ [ "wait" ]
123126
++ [ cleanupAndLink ]
124127
);
125128

0 commit comments

Comments
 (0)