home: Add gpg config

Also use the opportunity to switch to a new gpg key.
This commit is contained in:
Simon Bruder 2020-12-24 23:08:05 +01:00
parent 076ec0b321
commit 40986ce2c6
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 11 additions and 1 deletions

View file

@ -3,6 +3,7 @@
./alacritty.nix
./anki.nix
./git.nix
./gpg.nix
./gtk.nix
./htop.nix
./misc.nix

View file

@ -1,10 +1,11 @@
{ config, ... }:
{
programs.git = {
enable = true;
userName = "Simon Bruder";
userEmail = "simon@sbruder.de";
signing = {
key = "51276B7B829AF24674F2AA716F03E0000CC5B62F";
key = config.programs.gpg.settings.default-key;
signByDefault = true;
};

View file

@ -0,0 +1,8 @@
{
programs.gpg = {
enable = true;
settings = {
default-key = "47E7559E037A35652DBBF8AA8D3C82F9F309F8EC";
};
};
}