aboutsummaryrefslogtreecommitdiff
path: root/home/gpg.nix
blob: 63c1ec0ad4c51f64e6b7bb49a45fc4cdc9142006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ pkgs, ... }:

{
  programs.gpg = {
    enable = false;

    settings = {
      personal-digest-preferences = "SHA512";
      cert-digest-algo = "SHA512";
      cipher-algo = "AES256";
      default-preference-list = "SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed";
      personal-cipher-preferences = "TWOFISH CAMELLIA256 AES 3DES";
      throw-keyids = true;
      keyid-format = "0xlong";
      with-fingerprint = true;
    };
  };

  services.gpg-agent = {
    enable = true;
    defaultCacheTtl = 43200;
    maxCacheTtl = 43200;

    pinentry.package = pkgs.pinentry-curses;
  };
}