nix/home-manager/modules/accounts/ssh.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2024-12-02 03:57:34 -07:00
{ ... }:
{
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
}