Files
cnix/modules/home/services/gpg/default.nix

29 lines
542 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.services.gpg;
in {
options = {
home.services.gpg.enable = mkEnableOption "Enables gpg";
};
config = mkIf cfg.enable {
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableZshIntegration = true;
pinentry = {
package = pkgs.pinentry-gnome3;
};
};
programs.gpg = {
enable = true;
};
};
}