feat: setup git ssh signing

This commit is contained in:
2026-06-06 23:02:09 -04:00
parent 0f39c444a3
commit 118300d92f
4 changed files with 13 additions and 15 deletions
Generated
+6 -6
View File
@@ -110,11 +110,11 @@
"systems": "systems_2" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1780633669, "lastModified": 1780719019,
"narHash": "sha256-vfIgceYs5gyJ7VXP+JtaAHWg/ukIecjW0leK93bdytw=", "narHash": "sha256-DZCJn3xaUSztvxw8xtbRSBxRQRzAoWvzGFAc0NLZdjw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix4vscode", "repo": "nix4vscode",
"rev": "9c81fa6f3809b57af8ba1a8ed36e65555c493ea6", "rev": "efe7a04bb221089e7ecb0b663441afc2a40eb02d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -173,11 +173,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1779796641, "lastModified": 1780511130,
"narHash": "sha256-ZsIrKmhp4vbBXoXXmR/tBXA/UCsAQiJL9vsgZEduhVY=", "narHash": "sha256-2v9lT4ya59Lh1FqPeLnz1MoX9y/wz2huqfe9RtQZITk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "25f538306313eae3927264466c70d7001dcea1df", "rev": "535f3e6942cb1cead3929c604320d3db54b542b9",
"type": "github" "type": "github"
}, },
"original": { "original": {
+5 -7
View File
@@ -1,10 +1,13 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
home.packages = [ pkgs.delta ]; home.packages = [ pkgs.delta ];
programs.git = { programs.git = {
enable = true; enable = true;
signing = {
format = "ssh";
key = "~/.ssh/id_signing_git";
signByDefault = true;
};
settings = { settings = {
user.name = "Alex Maldonado"; user.name = "Alex Maldonado";
user.email = "alex@scient.ing"; user.email = "alex@scient.ing";
@@ -12,19 +15,15 @@
core.editor = "hx"; core.editor = "hx";
core.pager = "delta"; core.pager = "delta";
pull.rebase = true; pull.rebase = true;
delta = { delta = {
navigate = true; navigate = true;
side-by-side = true; side-by-side = true;
line-numbers = true; line-numbers = true;
}; };
interactive.diffFilter = "delta --color-only"; interactive.diffFilter = "delta --color-only";
merge.conflictstyle = "zdiff3"; merge.conflictstyle = "zdiff3";
diff.algorithm = "histogram"; diff.algorithm = "histogram";
diff.colorMoved = "default"; diff.colorMoved = "default";
push.autoSetupRemote = true; push.autoSetupRemote = true;
push.default = "simple"; push.default = "simple";
fetch.prune = true; fetch.prune = true;
@@ -32,7 +31,6 @@
help.autocorrect = "prompt"; help.autocorrect = "prompt";
branch.sort = "-committerdate"; branch.sort = "-committerdate";
column.ui = "auto"; column.ui = "auto";
transfer.fsckObjects = true; transfer.fsckObjects = true;
}; };
lfs.enable = true; lfs.enable = true;
+1 -1
View File
@@ -24,7 +24,7 @@
hostname = "git.scient.ing"; hostname = "git.scient.ing";
port = 22; port = 22;
user = "git"; user = "git";
identityFile = "~/.ssh/id_scienting_gitea"; identityFile = "~/.ssh/id_scienting_git";
}; };
}; };
+1 -1
View File
@@ -22,7 +22,7 @@ clean:
# Generate Ed25519 SSH keys for each named service (default: github gradescope). # Generate Ed25519 SSH keys for each named service (default: github gradescope).
# Override: just gen-keys gitlab bitbucket # Override: just gen-keys gitlab bitbucket
gen-keys *services='github gradescope h2p durrantlab': gen-keys *services='github gradescope h2p durrantlab signing_git scienting_git':
@./scripts/gen-keys.sh {{services}} @./scripts/gen-keys.sh {{services}}
# Download the latest NixOS installer ISO into iso/. # Download the latest NixOS installer ISO into iso/.