From 40986ce2c635fbd223beede62d1985d53bedc2e5 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 24 Dec 2020 23:08:05 +0100 Subject: [PATCH] home: Add gpg config Also use the opportunity to switch to a new gpg key. --- users/simon/modules/default.nix | 1 + users/simon/modules/git.nix | 3 ++- users/simon/modules/gpg.nix | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 users/simon/modules/gpg.nix diff --git a/users/simon/modules/default.nix b/users/simon/modules/default.nix index 83576a1..e637f61 100644 --- a/users/simon/modules/default.nix +++ b/users/simon/modules/default.nix @@ -3,6 +3,7 @@ ./alacritty.nix ./anki.nix ./git.nix + ./gpg.nix ./gtk.nix ./htop.nix ./misc.nix diff --git a/users/simon/modules/git.nix b/users/simon/modules/git.nix index eded310..0bc582c 100644 --- a/users/simon/modules/git.nix +++ b/users/simon/modules/git.nix @@ -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; }; diff --git a/users/simon/modules/gpg.nix b/users/simon/modules/gpg.nix new file mode 100644 index 0000000..f38ad5d --- /dev/null +++ b/users/simon/modules/gpg.nix @@ -0,0 +1,8 @@ +{ + programs.gpg = { + enable = true; + settings = { + default-key = "47E7559E037A35652DBBF8AA8D3C82F9F309F8EC"; + }; + }; +}