summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorSkullheadx <admonty1@gmail.com>2026-06-28 23:51:21 -0400
committerSkullheadx <admonty1@gmail.com>2026-06-28 23:51:21 -0400
commitf9446d970be5513ac1f7cedaf209c40463fe5725 (patch)
tree36f45710d15ce9cad44edf1aa835dfd35c2fdd3a /hosts
parentfix flake (diff)
downloadnixos-f9446d970be5513ac1f7cedaf209c40463fe5725.tar.gz
nixos-f9446d970be5513ac1f7cedaf209c40463fe5725.tar.bz2
nixos-f9446d970be5513ac1f7cedaf209c40463fe5725.zip
ssh config for darwin
Diffstat (limited to '')
-rw-r--r--hosts/bear/configuration.nix38
-rw-r--r--hosts/nepsis/configuration.nix1
2 files changed, 39 insertions, 0 deletions
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";
diff --git a/hosts/nepsis/configuration.nix b/hosts/nepsis/configuration.nix
index 16afb7c..980fc31 100644
--- a/hosts/nepsis/configuration.nix
+++ b/hosts/nepsis/configuration.nix
@@ -30,6 +30,7 @@
publicKeyFile = ./../../pubkeys/homelab_ssh.pub;
};
laptop = {
+ extraHostNames = ["192.168.1.111"];
publicKeyFile = ./../../pubkeys/laptop_ssh.pub;
};
vps = {