all repos — nixfiles @ 41aa7cc366d2242c0dbf1e035f22e7118e2ca942

System and user configuration, managed by nix and home-manager

user/settings/gnupg.nix (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config
, pkgs
, ...
}: {
  programs.gpg = {
    enable = true;
    homedir = "${config.xdg.dataHome}/gnupg";
    settings = {
      keyserver = "hkps://keys.openpgp.org";
    };
  };
  services.gpg-agent = {
    enable = true;
    pinentryPackage = with pkgs;
      if stdenv.isDarwin
      then pinentry_mac
      else pinentry-qt;
  };
}