2023-09-15 07:13:52 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
home.packages = [ pkgs.pinentry ];
|
|
|
|
programs = {
|
|
|
|
gpg.enable = true;
|
|
|
|
password-store = {
|
|
|
|
enable = true;
|
2023-09-28 08:27:13 +01:00
|
|
|
package = pkgs.pass-nodmenu.withExtensions
|
2023-09-15 07:13:52 +01:00
|
|
|
(exts: with exts; [ pass-otp pass-update pass-audit pass-import ]);
|
|
|
|
settings.PASSWORD_STORE_DIR = with config.home;
|
|
|
|
"${homeDirectory}/.password-store";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
2023-09-30 08:10:21 +01:00
|
|
|
gpg-agent = rec {
|
2023-09-15 07:13:52 +01:00
|
|
|
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";
|
2023-09-15 07:13:52 +01:00
|
|
|
extraConfig = ''
|
|
|
|
no-allow-external-cache
|
|
|
|
allow-emacs-pinentry
|
|
|
|
allow-loopback-pinentry
|
|
|
|
'';
|
|
|
|
};
|
2023-09-26 08:17:34 +01:00
|
|
|
password-store-sync.enable = true;
|
2023-09-15 07:13:52 +01:00
|
|
|
};
|
|
|
|
}
|