diff options
| author | tv <tv@krebsco.de> | 2026-11-24 05:54:09 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-25 13:58:32 +0100 |
| commit | 89c527ad1d1bd0cc32d2e8a38eaf0692b935fa5f (patch) | |
| tree | 4dbbfcbd69ac2dbfdd0fc907d81a3195fb1a5fb9 /krops.nix | |
| parent | f1731456865d9dbdbfbf570b37635355fd363598 (diff) | |
krops.nix: leave out secrets for hosts without them
Diffstat (limited to 'krops.nix')
| -rw-r--r-- | krops.nix | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -64,7 +64,8 @@ rec { ref = (lib.importJSON ./nixpkgs.json).${spec.nixpkgs}.rev; url = "https://github.com/NixOS/nixpkgs"; }; - secrets.passage = { + # Hosts without secrets get no secrets source. + secrets.passage = lib.optionalSource (builtins.pathExists ~/sync/secrets/${name}) { age = "${pkgs.rage}/bin/rage"; dir = toString ~/sync/secrets/${name}; identities_file = toString ~/.passage/identities; |
