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; [
kotatogram-desktop
nheko
docker-compose
libreoffice

View file

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