From c1967a274762f855f466ebdfca2225ebae700e89 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Mon, 20 Apr 2026 18:44:57 +0530 Subject: XNAMEX sucks an automated commit --- home/gpg.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 home/gpg.nix (limited to 'home/gpg.nix') diff --git a/home/gpg.nix b/home/gpg.nix new file mode 100644 index 0000000..f09bab7 --- /dev/null +++ b/home/gpg.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: + +{ + 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; + defaultCacheTtl = 43200; + maxCacheTtl = 43200; + + pinentry.package = pkgs.pinentry-curses; + }; +} -- cgit v1.1