summaryrefslogtreecommitdiffstats
path: root/gnupg-darwin.nix
blob: 7c3910b3ed9371d3a46b58ca345c58bf989bf269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  pkgs,
  input,
  ...
}: {
  environment.systemPackages = with pkgs; [
    pinentry-curses
    pinentry_mac
  ];

  # You MUST use the gnupg conf set in ".gnupg/gpg-agent.conf"
  programs.gnupg = {
    agent = {
      enable = true;
      enableSSHSupport = true;
      # enableBrowserSocket = true;
      # settings = {
      #   default-cache-ttl = 86400;
      #   max-cache-ttl = 604800;
      # };
    };
  };
}