all repos — dotfiles @ 37746ec6d7e38e614d0d1d777d0d20aed64624db

my *nix dotfiles

nix/git: ssh to sign commits
Anirudh Oppiliappan x@icyphox.sh
Tue, 06 Aug 2024 11:06:20 +0300
commit

37746ec6d7e38e614d0d1d777d0d20aed64624db

parent

dafb1a3666a5a8ddc0032f1124ad3d205c097fe4

3 files changed, 4 insertions(+), 39 deletions(-)

jump to
M darwin/home.nixdarwin/home.nix

@@ -9,7 +9,7 @@

{ home.stateVersion = "24.05"; home.username = "icy"; - manual.manpages.enable = false; + manual.manpages.enable = true; imports = [
M programs/git.nixprograms/git.nix

@@ -9,14 +9,12 @@ enable = true;

ignores = [ ".envrc" ]; userEmail = "x@icyphox.sh"; userName = "Anirudh Oppiliappan"; - signing = { - key = "8A93F96F78C5D4C4"; - signByDefault = true; - }; extraConfig = { commit.verbose = true; init.defaultBranch = "master"; pull.rebase = "true"; + gpg.format = "ssh"; + user.signingkey = "~/.ssh/id_ed25519.pub"; url."ssh://git@github.com/".insteadOf = "https://github.com/"; url."ssh://git@git.services.upcloud.com/".insteadOf = "https://git.services.upcloud.com/";
M programs/ssh.nixprograms/ssh.nix

@@ -10,44 +10,11 @@ matchBlocks = {

"*" = { serverAliveInterval = 180; serverAliveCountMax = 3; + identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ]; }; "github.com" = { user = "git"; hostname = "github.com"; - identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ]; - }; - "fern" = { - user = "ubuntu"; - hostname = "fern"; - identityFile = "~/.ssh/id_rsa"; - }; - "egg" = { - user = "icy"; - hostname = "egg"; - identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ]; - }; - "upcloud" = { - hostname = "git.services.upcloud.com"; - identityFile = "~/.ssh/upcloud"; - }; - "denna" = { - hostname = "denna"; - identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ]; - }; - "jade" = { - user = "ubuntu"; - hostname = "jade"; - identityFile = "~/.ssh/id_rsa"; - }; - "lapis2" = { - user = "icy"; - hostname = "150.230.131.193"; - identityFile = "~/.ssh/id_rsa"; - }; - "aniverse" = { - user = "icy"; - hostname = "94.237.18.93"; - identityFile = "~/.ssh/id_ed25519"; }; }; };