Added Github Private key; Added SSH Config
This commit is contained in:
18
home/ssh.nix
Normal file
18
home/ssh.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ primaryUser, isDarwin, ... }:
|
||||
{
|
||||
ssh = {
|
||||
enable = true;
|
||||
matchBlock = {
|
||||
"*.cyperpunk.de" = {
|
||||
identityFile =
|
||||
if isDarwin then "/Users/${primaryUser}/.ssh/ssh" else "/home/${primaryUser}/.ssh/ssh";
|
||||
user = primaryUser;
|
||||
};
|
||||
"github.com" = {
|
||||
identityFile =
|
||||
if isDarwin then "/Users/${primaryUser}/.ssh/github" else "/home/${primaryUser}/.ssh/github";
|
||||
user = "git";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user