nixos/home/pass/default.nix

24 lines
496 B
Nix
Raw Normal View History

2023-08-28 16:45:38 +01:00
{ pkgs, ... }:
{
programs = {
gpg.enable = true;
password-store = {
enable = true;
2023-08-28 16:45:38 +01:00
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
settings.PASSWORD_STORE_DIR = "$HOME/.password-store";
};
};
2023-08-30 17:13:10 +01:00
services.gpg-agent = {
enable = true;
defaultCacheTtl = 7200;
defaultCacheTtlSsh = 7200;
pinentryFlavor = "gtk2";
extraConfig = ''
no-allow-external-cache
allow-emacs-pinentry
allow-loopback-pinentry
'';
};
}