nixos/system/home/services/password-store/default.nix

29 lines
548 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
2024-07-30 15:06:34 +01:00
}:
{
programs = {
gpg.enable = true;
password-store = {
enable = true;
2024-07-30 15:06:34 +01:00
package = pkgs.pass-nodmenu.withExtensions (
exts: with exts; [
pass-update
pass-import
]
); # pass-audit
settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
};
};
};
services.gpg-agent = {
enable = true;
pinentryPackage = lib.mkDefault pkgs.pinentry-all;
};
}