nix-darwin/modules/aspects/_ssh/ssh.nix
2026-05-21 00:28:46 +09:00

57 lines
1.6 KiB
Nix

{config, ...}: {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
settings = {
"*" = {};
"github.com" = {
hostname = "github.com";
user = "git";
identitiesOnly = true;
identityFile = [config.sops.secrets."github_ssh_key".path];
};
"Valkyrie-Ubuntu_Server" = {
hostname = "192.168.64.2";
user = "poby";
port = 22;
identitiesOnly = true;
identityFile = [config.sops.secrets."github_ssh_key".path];
};
"kmeat-mac-mini" = {
hostname = "ai.kmeat.com";
user = "kmeat";
port = 10222;
identitiesOnly = true;
identityFile = [config.sops.secrets."kmeat_mac_mini_ssh_key".path];
};
"yggdrasil.local" = {
hostname = "222.109.216.197";
user = "poby";
port = 22;
identitiesOnly = true;
identityFile = [config.sops.secrets."github_ssh_key".path];
};
"midgard.local" = {
hostname = "222.109.239.172";
user = "poby";
port = 22;
identitiesOnly = true;
identityFile = [config.sops.secrets."github_ssh_key".path];
};
"yggdrasil" = {
hostname = "yggdrasil.tail6fc192.ts.net";
user = "poby";
port = 22;
identitiesOnly = true;
identityFile = [config.sops.secrets."github_ssh_key".path];
};
"midgard" = {
hostname = "midgard.tail6fc192.ts.net";
user = "poby";
port = 22;
identitiesOnly = true;
identityFile = [config.sops.secrets."github_ssh_key".path];
};
};
};
}