Merge pull request 'feat: set up ssh keys' (#58) from setup-ssh-key into main
Reviewed-on: #58
This commit is contained in:
commit
08f46c76e8
3 changed files with 22 additions and 4 deletions
|
@ -15,6 +15,7 @@
|
|||
./ime.nix
|
||||
./mako.nix
|
||||
./nvd.nix
|
||||
./ssh.nix
|
||||
./sway.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -18,10 +18,6 @@
|
|||
s = "status -s";
|
||||
};
|
||||
|
||||
signing = {
|
||||
key = "EBAC355935FD7382";
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
branch = {
|
||||
sort = "-committerdate";
|
||||
|
@ -31,6 +27,10 @@
|
|||
defaultBranch = "main";
|
||||
};
|
||||
|
||||
gpg = {
|
||||
format = "ssh";
|
||||
};
|
||||
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
|
@ -38,6 +38,10 @@
|
|||
pull = {
|
||||
ff = "only";
|
||||
};
|
||||
|
||||
user = {
|
||||
signingKey = "~/.ssh/id_buffet";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
13
users/buffet/ssh.nix
Normal file
13
users/buffet/ssh.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue