authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-10-04 20:55:46-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-11-07 00:02:33-08:00
logbaf1147d4ce5922bc3f2b21407b7b5f1791897e1
tree5a3192fb88ab83e04e86f80552b35ac1e0a84237
parentb837012096e559b22b4566bfae9eb7ea4f5f624c
signature Commit is signed but in an unrecognized format.

feat: add git and jujutsu signing


2 files changed, 11 insertions(+), 5 deletions(-)

modules/home/default.nix+3-3
......@@ -141,10 +141,10 @@ in
141141 email = config.programs.git.userEmail;
142142 name = config.programs.git.userName;
143143 };
144 signing = {
144 signing = lib.mkIf (config.programs.git.signing.key != null) {
145 inherit (config.programs.git.signing) key;
146 backend = "gpg";
145147 behavior = "own";
146 backend = "ssh";
147 key = "~/.ssh/id_ed25519.pub";
148148 };
149149 git = {
150150 sign-on-push = true;
users/clover/home.nix+8-2
......@@ -14,7 +14,8 @@ in
1414 ripgrep
1515 uv
1616 nh
17 pkgs.autofmt
17 autofmt
18 gnupg
1819 ];
1920 # packages to install for desktop environments (non-server)
2021 desktop = [
......@@ -101,6 +102,10 @@ in
101102
102103 # use a git-specific email
103104 git.userEmail = "git@paperclover.net";
105 git.signing = {
106 signByDefault = true;
107 key = "C0D577FD799F9D11";
108 };
104109
105110 jujutsu = {
106111 enable = true;
......@@ -286,13 +291,14 @@ in
286291 )
287292 '';
288293 };
294
289295 };
290296 };
291297
292298 ssh = {
293299 enable = true;
294300 extraConfig = ''
295 SetEnv TERM=xterm-color
301 SetEnv TERM=xterm-256color
296302 '';
297303 matchBlocks = rec {
298304 zenith = {