diff options
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; |
