diff options
Diffstat (limited to '')
-rw-r--r-- | home/gpg/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/home/gpg/default.nix b/home/gpg/default.nix index 9513185..9392961 100644 --- a/home/gpg/default.nix +++ b/home/gpg/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ pkgs, config, lib, ... }: let cfg = config.my.home.gpg; in { @@ -18,10 +18,19 @@ in }; config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ yubikey-manager ]; + programs.gpg = { enable = true; homedir = "${config.xdg.configHome}/gnupg"; - settings = { default-key = cfg.defaultKey; }; + settings = { + default-key = cfg.defaultKey; + personal-cipher-preferences = "AES256 AES192 AES"; + personal-digest-preferences = "SHA512 SHA384 SHA256"; + personal-compress-preferences = "ZLIB BZIP2 ZIP Uncompressed"; + keyid-format = "long"; + with-fingerprint = true; + }; }; services.gpg-agent = { enable = true; |