nix-darwin/modules/aspects/_ssh/ssh.nix
Poby 8b537c2d14
fix: mise, ssh, nix
mise: rebuild took more than 10 minutes - cause not found
ssh: host Github alias doesn't work. replace with `github.com`
nix: use nix latest version
2026-04-17 00:37:59 +09:00

22 lines
544 B
Nix

{config, ...}: {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {};
"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];
};
};
};
}