From f9446d970be5513ac1f7cedaf209c40463fe5725 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Sun, 28 Jun 2026 23:51:21 -0400 Subject: ssh config for darwin --- hosts/bear/configuration.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'hosts/bear') diff --git a/hosts/bear/configuration.nix b/hosts/bear/configuration.nix index bf9c10d..33fac99 100644 --- a/hosts/bear/configuration.nix +++ b/hosts/bear/configuration.nix @@ -20,6 +20,44 @@ mpv ]; + programs.ssh = { + knownHosts = { + homelab = { + extraHostNames = ["192.168.1.120"]; + publicKeyFile = ./../../pubkeys/homelab_ssh.pub; + }; + desktop = { + extraHostNames = ["192.168.1.122"]; + publicKeyFile = ./../../pubkeys/desktop_ssh.pub; + }; + vps = { + extraHostNames = ["170.205.37.7"]; + publicKeyFile = ./../../pubkeys/vps_ssh.pub; + }; + github = { + extraHostNames = ["github.com"]; + publicKeyFile = ./../../pubkeys/github_ssh.pub; + }; + }; + extraConfig = '' + Host git-vps + HostName git.skullheadx.com + Port 2222 + User git + Host git.skullheadx.com + HostName localhost + Port 2223 + User git + ProxyJump git-vps + Host homelab + HostName 192.168.1.120 + Port 22 + Host vps + Hostname 170.205.37.7 + Port 2222 + ''; + }; + homebrew = { enable = true; user = "andrewmontgomery"; -- cgit v1.3.1