switch to ssh keys for signing commits

This commit is contained in:
jacekpoz 2024-03-03 01:55:00 +01:00
parent e2d5090e29
commit 37589bfc65

View file

@ -37,10 +37,6 @@ in {
home-manager.users.${username} = {
programs.git = {
inherit (cfg) enable userName userEmail;
signing = {
key = cfg.signingKey;
signByDefault = true;
};
extraConfig = {
contents = {
core = {
@ -49,7 +45,12 @@ in {
};
init.defaultBranch = cfg.defaultBranch;
push.autoSetupRemote = true;
commit.verbose = true;
commit = {
verbose = true;
gpgsign = true;
};
gpg.format = "ssh";
user.signingkey = "key::ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXD1EM4mQz99vJhmZX1r7kwMd8yewogOuoTUuv1xWZB";
merge.conflictstyle = "zdiff3";
interactive.diffFilter = "${pkgs.delta}/bin/delta --color-only";
diff.algorithm = "histogram";