summary refs log tree commit diff stats
path: root/user/settings/gnupg.nix
blob: d719b618cc41909aca91b5e0c8c507b9bcfb1424 (plain)
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;
  };
}