From 4a8f4dbc17c8274b7fd3f71c9bb867ba99e7bf9e Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 16 Oct 2025 22:41:59 +0200 Subject: [PATCH] git: Sign commits with ssh key --- modules/home/programs/git.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/home/programs/git.nix b/modules/home/programs/git.nix index 7a26239..3a2067a 100644 --- a/modules/home/programs/git.nix +++ b/modules/home/programs/git.nix @@ -17,6 +17,12 @@ userEmail = "sebastian.stork@pm.me"; extraConfig.init.defaultBranch = "main"; + signing = { + format = "ssh"; + key = "~/.ssh/git.sstork.dev"; + signByDefault = true; + }; + includes = [ { condition = "gitdir:~/Projects/h-da/**"; @@ -24,8 +30,8 @@ user = { name = "Sebastian Stork"; email = "sebastian.stork@stud.h-da.de"; + signingkey = "~/.ssh/code.fbi.h-da.de"; }; - init.defaultBranch = "main"; }; } ];