feat: set up ssh keys #58

Merged
chef merged 1 commit from setup-ssh-key into main 2024-07-15 16:39:12 +00:00
3 changed files with 22 additions and 4 deletions
Showing only changes of commit 40ea4d34c9 - Show all commits

View file

@ -15,6 +15,7 @@
./ime.nix ./ime.nix
./mako.nix ./mako.nix
./nvd.nix ./nvd.nix
./ssh.nix
./sway.nix ./sway.nix
]; ];

View file

@ -18,10 +18,6 @@
s = "status -s"; s = "status -s";
}; };
signing = {
key = "EBAC355935FD7382";
};
extraConfig = { extraConfig = {
branch = { branch = {
sort = "-committerdate"; sort = "-committerdate";
@ -31,6 +27,10 @@
defaultBranch = "main"; defaultBranch = "main";
}; };
gpg = {
format = "ssh";
};
push = { push = {
autoSetupRemote = true; autoSetupRemote = true;
}; };
@ -38,6 +38,10 @@
pull = { pull = {
ff = "only"; ff = "only";
}; };
user = {
signingKey = "~/.ssh/id_buffet";
};
}; };
}; };
}; };

13
users/buffet/ssh.nix Normal file
View file

@ -0,0 +1,13 @@
{
home-manager.users.buffet = {
programs.ssh = {
enable = true;
extraConfig = ''
Host kitchen
Hostname buffets.kitchen
User forgejo
IdentityFile ~/.ssh/id_buffet_ecdsa
'';
};
};
}