aboutsummaryrefslogtreecommitdiff
path: root/home/gpg.nix
blob: def7b266da16e934bafd51065e2c5f6e020f0e10 (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 = false;
    defaultCacheTtl = 43200;
    maxCacheTtl = 43200;

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