nixos-config/home-manager/modules/gpg/default.nix

32 lines
508 B
Nix
Raw Normal View History

2021-11-17 16:32:18 +01:00
{
2022-03-01 22:19:03 +01:00
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.eboskma.programs.gpg;
in {
2021-11-17 16:32:18 +01:00
options.eboskma.programs.gpg = {
enable = mkEnableOption "enable gpg";
};
config = mkIf (cfg.enable) {
home.packages = with pkgs; [
2021-11-21 19:07:12 +01:00
pinentry-gnome
2021-11-17 16:32:18 +01:00
];
programs.gpg = {
enable = true;
};
services.gpg-agent = {
enable = true;
2021-11-21 19:07:12 +01:00
pinentryFlavor = "gnome3";
2021-11-17 16:32:18 +01:00
enableSshSupport = true;
defaultCacheTtlSsh = 14400;
maxCacheTtlSsh = 14400;
};
};
}