nix/home/programs/gpg.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

2022-04-01 17:17:22 +00:00
{pkgs, ...}: {
2022-01-29 18:21:01 +00:00
programs.gpg = {
enable = true;
settings = {
personal-cipher-preferences = "AES256 AES192 AES";
personal-digest-preferences = "SHA512 SHA384 SHA256";
personal-compress-preferences = "ZLIB BZIP2 ZIP Uncompressed";
2022-02-01 22:52:30 +00:00
default-preference-list = "SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed";
2022-01-29 18:21:01 +00:00
cert-digest-algo = "SHA512";
s2k-digest-algo = "SHA512";
s2k-cipher-algo = "AES256";
charset = "utf-8";
fixed-list-mode = true;
no-comments = true;
no-emit-version = true;
no-greeting = true;
keyid-format = "0xlong";
list-options = "show-uid-validity";
verify-options = "show-uid-validity";
with-fingerprint = true;
with-key-origin = true;
require-cross-certification = true;
no-symkey-cache = true;
use-agent = true;
throw-keyids = true;
default-key = "0x7D5107866B1C6752";
trusted-key = "0x7D5107866B1C6752";
keyserver = "hkps://keys.openpgp.org";
};
2022-01-29 18:43:43 +00:00
scdaemonSettings = {
2022-05-14 02:01:25 +00:00
card-timeout = "60";
2022-01-29 18:43:43 +00:00
pcsc-shared = true;
2022-04-06 15:20:16 +00:00
# shared-access = true;
2022-04-01 17:17:22 +00:00
disable-ccid = true;
pcsc-driver = "${pkgs.pcsclite.out}/lib/libpcsclite.so";
2022-04-06 15:20:16 +00:00
reader-port = "Yubico Yubi";
2022-01-29 18:43:43 +00:00
};
2022-01-29 18:21:01 +00:00
};
}