Add ssh config
This commit is contained in:
parent
3589d76b40
commit
9d68536e73
1 changed files with 45 additions and 0 deletions
45
home-manager/modules/accounts/ssh.nix
Normal file
45
home-manager/modules/accounts/ssh.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
forwardAgent = true;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
# Tailscale nodes
|
||||||
|
"vps" = {
|
||||||
|
hostName = "oracle-vps";
|
||||||
|
user = "tyman";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
"srv" = {
|
||||||
|
hostName = "old-lenovo-laptop";
|
||||||
|
user = "ty";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
"polyfrost" = {
|
||||||
|
hostName = "polyfrost-vps";
|
||||||
|
user = "tyman";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
# Git hosts
|
||||||
|
"forgejo" = {
|
||||||
|
hostName = "git.myriation.xyz";
|
||||||
|
user = "git";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
"github" = {
|
||||||
|
hostName = "github.com";
|
||||||
|
user = "git";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
"codeberg" = {
|
||||||
|
hostName = "codeberg.org";
|
||||||
|
user = "git";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.ssh-agent.enable = false; # Handled by GPG
|
||||||
|
}
|
Loading…
Reference in a new issue