From b587bd1b49e4d4938e843be1fd3734a5b2a4577e Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 27 Sep 2023 21:26:58 +0200 Subject: [PATCH] secrets.password-store: readd targetDirectory --- nixosModules/clanCore/secrets/password-store.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixosModules/clanCore/secrets/password-store.nix b/nixosModules/clanCore/secrets/password-store.nix index 9163493a3..3d3ecaa83 100644 --- a/nixosModules/clanCore/secrets/password-store.nix +++ b/nixosModules/clanCore/secrets/password-store.nix @@ -3,8 +3,15 @@ let passwordstoreDir = "\${PASSWORD_STORE_DIR:-$HOME/.password-store}"; in { + options.clan.password-store.targetDirectory = lib.mkOption { + type = lib.types.path; + default = "/etc/secrets"; + description = '' + The directory where the password store is uploaded to. + ''; + }; config = lib.mkIf (config.clanCore.secretStore == "password-store") { - clanCore.secretsDirectory = passwordstoreDir; + clanCore.secretsDirectory = config.clan.password-store.targetDirectory; system.clan.generateSecrets = pkgs.writeScript "generate-secrets" '' #!/bin/sh set -efu