nixos-config/home-manager/modules/gpg/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

34 lines
567 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.programs.gpg;
in
{
options.eboskma.programs.gpg = {
enable = mkEnableOption "enable gpg";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ pinentry-gnome ];
programs.gpg = {
enable = true;
};
services.gpg-agent = {
enable = true;
pinentryFlavor = "gnome3";
# enableSshSupport = true;
# defaultCacheTtlSsh = 14400;
# maxCacheTtlSsh = 14400;
extraConfig = ''
allow-loopback-pinentry
'';
};
};
}