secrets.password-store: readd targetDirectory
This commit is contained in:
@@ -3,8 +3,15 @@ let
|
|||||||
passwordstoreDir = "\${PASSWORD_STORE_DIR:-$HOME/.password-store}";
|
passwordstoreDir = "\${PASSWORD_STORE_DIR:-$HOME/.password-store}";
|
||||||
in
|
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") {
|
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" ''
|
system.clan.generateSecrets = pkgs.writeScript "generate-secrets" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -efu
|
set -efu
|
||||||
|
|||||||
Reference in New Issue
Block a user