nixos/home/pass.nix

31 lines
749 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
home.packages = [ pkgs.pinentry ];
programs = {
gpg.enable = true;
password-store = {
enable = true;
package = pkgs.pass-nodmenu.withExtensions
(exts: with exts; [ pass-otp pass-update pass-audit pass-import ]);
2023-10-10 07:18:59 +01:00
settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
};
};
};
services = {
2023-09-30 08:10:21 +01:00
gpg-agent = rec {
enable = true;
2023-09-30 08:10:21 +01:00
maxCacheTtl = 86400;
defaultCacheTtl = maxCacheTtl;
defaultCacheTtlSsh = maxCacheTtl;
2023-09-28 08:36:41 +01:00
pinentryFlavor = "gtk2";
extraConfig = ''
no-allow-external-cache
'';
};
2023-09-26 08:17:34 +01:00
password-store-sync.enable = true;
};
}