git ssh signing

This commit is contained in:
Noah Masur 2024-03-26 13:07:26 -04:00
parent 82f7da5858
commit a15c05491e
No known key found for this signature in database

View File

@ -38,6 +38,12 @@ in {
push = { autoSetupRemote = "true"; }; push = { autoSetupRemote = "true"; };
init = { defaultBranch = "master"; }; init = { defaultBranch = "master"; };
rebase = { autosquash = "true"; }; rebase = { autosquash = "true"; };
gpg = {
format = "ssh";
ssh.allowedSignersFile = "~/.config/git/allowed-signers";
};
commit.gpgsign = true;
tag.gpgsign = true;
}; };
ignores = [ ".direnv/**" "result" ]; ignores = [ ".direnv/**" "result" ];
includes = [{ includes = [{
@ -52,6 +58,11 @@ in {
[user] [user]
name = "${config.fullName}" name = "${config.fullName}"
email = "7386960+nmasur@users.noreply.github.com" email = "7386960+nmasur@users.noreply.github.com"
signingkey = ~/.ssh/id_ed25519
'';
xdg.configFile."git/allowed-signers".text = ''
7386960+nmasur@users.noreply.github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s
''; '';
programs.fish.shellAbbrs = { programs.fish.shellAbbrs = {