dotfiles/modules/services/gnupg.nix

17 lines
477 B
Nix
Raw Normal View History

2022-05-22 23:43:46 +00:00
{ config, pkgs, lib, ... }: {
2022-05-10 02:55:10 +00:00
home-manager.users.${config.user} = {
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
defaultCacheTtl = 86400; # Resets when used
defaultCacheTtlSsh = 86400; # Resets when used
maxCacheTtl = 34560000; # Can never reset
maxCacheTtlSsh = 34560000; # Can never reset
pinentryFlavor = "tty";
};
2022-05-22 23:43:46 +00:00
home = lib.mkIf config.gui.enable { packages = with pkgs; [ pinentry ]; };
2022-05-10 02:55:10 +00:00
};
}