2024-03-17 05:18:00 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2023-05-17 01:10:15 +02:00
|
|
|
{
|
2023-06-16 13:23:35 +02:00
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
2024-04-05 19:28:23 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
2023-05-18 23:39:57 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
2024-08-07 22:32:53 +02:00
|
|
|
pinentryPackage = pkgs.pinentry-curses;
|
2023-06-16 13:23:35 +02:00
|
|
|
defaultCacheTtl = 43200;
|
|
|
|
maxCacheTtl = 43200;
|
|
|
|
};
|
2023-05-17 01:10:15 +02:00
|
|
|
}
|