git: Sign commits with ssh key
Some checks failed
Cachix / build (elendel) (push) Successful in 1m25s
Cachix / build (kholinar) (push) Failing after 40s
Cachix / build (marabethia) (push) Successful in 1m23s

This commit is contained in:
Charlotte Van Petegem 2025-01-13 14:52:56 +01:00
parent 0c1c93f79a
commit 85e6d9a73b
Signed by: chvp
SSH key fingerprint: SHA256:+xxExaZKfphaPBA/f79I53pATM1GM3mRUFmOl/ChUbM

View file

@ -2,6 +2,8 @@
let let
username = config.chvp.username; username = config.chvp.username;
homeDir = config.home-manager.users.${username}.home.homeDirectory;
sshKeyFile = config.home-manager.users.${username}.programs.ssh.extraOptionOverrides.IdentityFile or "${homeDir}/.ssh/id_ed25519";
in in
{ {
options.chvp.development.git = { options.chvp.development.git = {
@ -68,11 +70,15 @@ in
lfs.enable = true; lfs.enable = true;
extraConfig = { extraConfig = {
branch.autosetuprebase = "always"; branch.autosetuprebase = "always";
commit.gpgSign = true;
github.user = "chvp"; github.user = "chvp";
gpg.format = "ssh";
merge.conflictStyle = "diff3"; merge.conflictStyle = "diff3";
pull.rebase = true; pull.rebase = true;
rebase.autoStash = true; rebase.autoStash = true;
rerere.enabled = true; rerere.enabled = true;
tag.gpgSign = true;
user.signingKey = sshKeyFile;
}; };
ignores = [ ignores = [
".DS_Store" ".DS_Store"