home/pass: enable pass secret service

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-01 13:29:50 +03:00
parent 4a02a0308c
commit d1af92edf8
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 9 additions and 8 deletions

View file

@ -20,6 +20,7 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
kotatogram-desktop kotatogram-desktop
nheko
docker-compose docker-compose
libreoffice libreoffice

View file

@ -4,7 +4,7 @@ with lib;
let let
cfg = config.progs.pass; cfg = config.progs.pass;
pass_data_dir = "${config.home.sessionVariables.XDG_DATA_HOME}/pass"; passDataDir = "${config.xdg.dataHome}/pass";
in in
{ {
options.progs.pass = { options.progs.pass = {
@ -16,16 +16,16 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ pkgs.pass ]; programs.password-store = {
enable = true;
home.sessionVariables = { settings = {
PASSWORD_STORE_DIR = "${pass_data_dir}/store"; PASSWORD_STORE_DIR = "${passDataDir}/store";
PASSWORD_STORE_EXTENSIONS_DIR = "${pass_data_dir}/extensions"; PASSWORD_STORE_EXTENSIONS_DIR = "${passDataDir}/extensions";
};
}; };
services.pass-secret-service.enable = true;
programs.gpg.enable = true; programs.gpg.enable = true;
services.gpg-agent.enable = true; services.gpg-agent.enable = true;
}; };
} }