We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fe5277 commit b54c712Copy full SHA for b54c712
nix/modules/clawdinator.nix
@@ -528,19 +528,23 @@ in
528
(secret: "\"${secret.file}\"")
529
(lib.attrValues config.age.secrets);
530
in
531
- lib.mkBefore ''
532
- found=0
533
- for file in ${secretFiles}; do
534
- if [ -f "$file" ]; then
535
- found=1
536
- break
+ lib.mkMerge [
+ (lib.mkBefore ''
+ found=0
+ for file in ${secretFiles}; do
+ if [ -f "$file" ]; then
+ found=1
537
+ break
538
+ fi
539
+ done
540
+ if [ "$found" -eq 0 ]; then
541
+ echo "[agenix] no encrypted secrets present; skipping install"
542
+ else
543
+ '')
544
+ (lib.mkAfter ''
545
fi
- done
- if [ "$found" -eq 0 ]; then
- echo "[agenix] no encrypted secrets present; skipping install"
- exit 0
- fi
- ''
546
547
+ ]
548
);
549
550
systemd.tmpfiles.rules = [
0 commit comments