From aa2aa0ef2d814709e6f09281c657b487b6e88dc7 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 2 Nov 2024 16:48:29 +0100 Subject: [PATCH] Sign git commits --- modules/home/git.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/home/git.nix b/modules/home/git.nix index 424ef81..9f1a294 100644 --- a/modules/home/git.nix +++ b/modules/home/git.nix @@ -2,9 +2,14 @@ programs.git = { enable = true; - userName = "peprolinbot"; + userName = "Pedro Rey Anca"; userEmail = "personal@peprolinbot.com"; + signing = { + signByDefault = true; + key = null; # Let GnuPG decide what signing key to use depending on commit’s author. + }; + extraConfig = { init.defaultBranch = "main"; credential.helper = "store";