home/pass: enable pass secret service
This commit is contained in:
parent
4a02a0308c
commit
d1af92edf8
2 changed files with 9 additions and 8 deletions
|
@ -20,6 +20,7 @@ in
|
|||
|
||||
home.packages = with pkgs; [
|
||||
kotatogram-desktop
|
||||
nheko
|
||||
docker-compose
|
||||
libreoffice
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue