feat: set up ssh keys

This commit is contained in:
buffet 2024-07-15 17:55:20 +02:00
parent 07953b1bde
commit 40ea4d34c9
No known key found for this signature in database
3 changed files with 22 additions and 4 deletions

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
'';
};
};
}