mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-01 04:35:21 +01:00
e2e8971eb3
Changes made: - Preferred "inherits" where possible - Removed unnecessary comments - Added variables to avoid duplicate strings - Reduced usage of "with x;"
29 lines
655 B
Nix
29 lines
655 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
inherit (pkgs) pinentry-curses;
|
|
in
|
|
{
|
|
programs.gpg = {
|
|
enable = true;
|
|
|
|
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;
|
|
pinentryPackage = pinentry-curses;
|
|
defaultCacheTtl = 43200;
|
|
maxCacheTtl = 43200;
|
|
};
|
|
}
|