Git ssh signing darwin

also fix defaults woop
This commit is contained in:
Nathan McCarty 2023-03-27 18:37:02 -04:00
parent fc11df5c6b
commit cf1cbd5c48
No known key found for this signature in database
2 changed files with 8 additions and 4 deletions

View File

@ -86,10 +86,6 @@ with lib; {
package = pkgs.gitAndTools.gitFull;
userName = "Nathan McCarty";
userEmail = "nathan@mccarty.io";
signing = {
key = lib.mkDefault "B7A40A5D78C08885";
signByDefault = config.nathan.programs.util.git.gpgSign;
};
ignores = [
"**/*~"
"*~"

View File

@ -14,4 +14,12 @@
};
config = { isDesktop = true; };
};
# Setup git commit signing with ssh key
programs.git = {
extraConfig = {
commit.gpgSign = true;
gpg.format = "ssh";
user.signingKey = "~/.ssh/id_ed25519.pub";
};
};
}