nixos/home/pass.nix
Evie Litherland-Smith 6b7b76e7bc Switch to gnome-keyring for libsecret
email password and git credential helper now use gnome-keyring/secret-service
2023-09-30 09:27:43 +01:00

31 lines
752 B
Nix

{ 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 ]);
settings.PASSWORD_STORE_DIR = with config.home;
"${homeDirectory}/.password-store";
};
};
services = {
gpg-agent = rec {
enable = true;
maxCacheTtl = 86400;
defaultCacheTtl = maxCacheTtl;
defaultCacheTtlSsh = maxCacheTtl;
pinentryFlavor = "gtk2";
extraConfig = ''
no-allow-external-cache
allow-emacs-pinentry
allow-loopback-pinentry
'';
};
password-store-sync.enable = true;
};
}