From 726ac24aed23debf556251e77b3dffcfad77b7dc Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 18 Apr 2024 16:01:30 +0300 Subject: [PATCH] users/jan: fix pass store path --- users/jan/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/users/jan/default.nix b/users/jan/default.nix index 117490c..d499657 100644 --- a/users/jan/default.nix +++ b/users/jan/default.nix @@ -60,9 +60,6 @@ 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 @@ -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