nixdots/home/programs/terminal/tools/gpg.nix
2024-07-27 01:07:07 +02:00

30 lines
718 B
Nix

{config, ...}: {
programs = {
gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
# I manage the keys manually
mutableKeys = true;
mutableTrust = true;
settings = {
keyserver = "hkps://keys.openpgp.org";
# Don't leak information in signature
no-emit-version = "";
no-comments = "";
export-options = "export-minimal";
# Display the long format of the key ID and show fingerprints by default
keyid-format = "0xlong";
with-fingerprint = "";
# Display UID validity of the keys
list-options = "show-uid-validity";
verify-options = "show-uid-validity";
};
};
};
}