Fix secrets more

This commit is contained in:
Alexander Bantyev 2021-06-16 01:09:59 +03:00
parent f2dcbd22b6
commit c1d48ccf86
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ let
mkIndividualSecrets = name: cfg: mkIndividualSecrets = name: cfg:
map (x: { map (x: {
"${name}-envsubst-${x}" = { "${name}-envsubst-${x}" = {
encrypted = "/home/balsoft/.password-store/${ encrypted = "${config.environment.sessionVariables.PASSWORD_STORE_DIR}/${
lib.optionalString (!isNull cfg.directory) "${cfg.directory}/" lib.optionalString (!isNull cfg.directory) "${cfg.directory}/"
}${x}.gpg"; }${x}.gpg";
services = [ ]; services = [ ];

View File

@ -10,7 +10,7 @@ in {
secrets.email = { secrets.email = {
owner = "balsoft:users"; owner = "balsoft:users";
services = [ ]; services = [ ];
encrypted = "/home/balsoft/.password-store/email/balsoft@balsoft.ru.gpg"; encrypted = "${config.environment.sessionVariables.PASSWORD_STORE_DIR}/email/balsoft@balsoft.ru.gpg";
}; };
home-manager.users.balsoft = { home-manager.users.balsoft = {