users/jan: fix pass store path

This commit is contained in:
Dmitriy Pleshevskiy 2024-04-18 16:01:30 +03:00
parent 4d97f0b3ba
commit 726ac24aed
Signed by: pleshevskiy
GPG Key ID: 17041163DA10A9A2
1 changed files with 7 additions and 4 deletions

View File

@ -60,9 +60,6 @@
local.shell.enable = true; local.shell.enable = true;
home.sessionVariables = lib.mkIf config.local.programs.pass.enable {
PASSWORD_STORE_DIR = "${config.home-manager.users.jan.xdg.dataHome}/pass/store";
};
################################################################################ ################################################################################
# Programs # Programs
@ -124,7 +121,13 @@
}; };
}; };
services.pass-secret-service.enable = config.local.programs.pass.enable; services.pass-secret-service = lib.mkIf config.local.programs.pass.enable {
enable = true;
storePath = config.home-manager.users.jan.home.sessionVariables.PASSWORD_STORE_DIR;
};
home.sessionVariables = lib.mkIf config.local.programs.pass.enable {
PASSWORD_STORE_DIR = "${config.home-manager.users.jan.xdg.dataHome}/pass/store";
};
################################################################################ ################################################################################
# Packages # Packages