nix-darwin/modules/aspects/_ssh/ssh.nix
2026-05-19 22:37:27 +09:00

29 lines
765 B
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];
};
};
};
}