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; [
|
home.packages = with pkgs; [
|
||||||
kotatogram-desktop
|
kotatogram-desktop
|
||||||
|
nheko
|
||||||
docker-compose
|
docker-compose
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue