mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 04:04:35 +00:00
Add gpg
This commit is contained in:
parent
70be05057b
commit
e7c53dbb63
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./git
|
./git
|
||||||
|
./gpg.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
29
home/programs/terminal/tools/gpg.nix
Normal file
29
home/programs/terminal/tools/gpg.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue