This commit is contained in:
ItsDrike 2024-04-04 21:48:31 +02:00
parent 70be05057b
commit e7c53dbb63
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 30 additions and 3 deletions

View file

@ -1,5 +1,6 @@
_: { _: {
imports = [ imports = [
./git ./git
./gpg.nix
]; ];
} }

View file

@ -9,9 +9,6 @@ in
./aliases.nix ./aliases.nix
]; ];
# TODO: Figure out how to manage gpg keys properly in nix/home-manager
# (right now, I'm importing my keys manually)
programs.git = { programs.git = {
enable = true; enable = true;
package = pkgs.gitAndTools.gitFull; package = pkgs.gitAndTools.gitFull;

View file

@ -0,0 +1,29 @@
{ 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";
};
};
};
}