System/home-manager/linux/programs/gpg.nix

17 lines
340 B
Nix

{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.nathan.programs.util.gpg {
programs.gpg = { enable = true; };
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableExtraSocket = true;
pinentryFlavor = "qt";
extraConfig = ''
allow-emacs-pinentry
'';
};
};
}