feat(git): add signing key to secrets store and sign all commits by default

This commit is contained in:
Will Holdsworth 2026-02-24 22:48:30 +11:00 committed by Will Holdsworth
parent e3c18152d5
commit b1369d9233
Signed by: will-holdsworth
SSH key fingerprint: SHA256:Ykee8aymMJNAiYeeEmiwcIzkA1wgd4v8OZcWGxjq12c
4 changed files with 31 additions and 8 deletions

View file

@ -1,15 +1,12 @@
{
userName,
...
}:
{
programs.git = {
enable = true;
settings = {
init.defaultBranch = "main";
core.editor = "nvim";
push.autoSetupRemote = true;
pull.rebase = true;
user = {
name = "wi11-holdsworth";
email = "83637728+wi11-holdsworth@users.noreply.github.com";
};
# keep-sorted start block=yes
aliases = {
# keep-sorted start
a = "add";
@ -30,6 +27,20 @@
s = "status -s";
# keep-sorted end
};
core.editor = "nvim";
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
user = {
name = "Will Holdsworth";
email = "me@fi33.buzz";
};
# keep-sorted end
};
signing = {
key = "/home/${userName}/.ssh/git_signature.pub";
format = "ssh";
signByDefault = true;
};
};
}