From 724a874c977dcf5a485e7b0eb1618957345592e3 Mon Sep 17 00:00:00 2001 From: caem Date: Sun, 1 Dec 2024 13:16:19 +0100 Subject: [PATCH] git: Fix commit signing --- modules/packages/git.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/packages/git.nix b/modules/packages/git.nix index 22e99a7..7beb86f 100644 --- a/modules/packages/git.nix +++ b/modules/packages/git.nix @@ -11,6 +11,12 @@ in { name = "caem" signingKey = "E50FC66B5062070DC462661C69A830D03203405F" + [gpg] + program = "${pkgs.gnupg}/bin/gpg2" + + [commit] + gpgSign = true + [tag] gpgSign = true @@ -28,9 +34,6 @@ in { home.file."/home/hu/.config/git/config" = { text = '' - [gpg] - program = "${pkgs.gnupg}/bin/gpg2" - [includeIf "gitdir:~/programming/personal/**"] path = ~/.config/git/personal