From 27aa71ed8aa0f21ef63dd19374502c78b36beb76 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Mon, 3 Feb 2025 19:01:54 +0100 Subject: [PATCH] alias the vpn ips into config because mirroring mdns is hard --- home-manager/shared/default.nix | 1 + home-manager/shared/ssh/config | 20 ++++++++++++++++++++ home-manager/shared/ssh/default.nix | 8 ++++++++ 3 files changed, 29 insertions(+) create mode 100644 home-manager/shared/ssh/config create mode 100644 home-manager/shared/ssh/default.nix diff --git a/home-manager/shared/default.nix b/home-manager/shared/default.nix index ae27835..327eb26 100644 --- a/home-manager/shared/default.nix +++ b/home-manager/shared/default.nix @@ -4,6 +4,7 @@ ... }: { imports = [ + ./ssh ./shell/helix ./shell/zellij ./shell/zsh.nix diff --git a/home-manager/shared/ssh/config b/home-manager/shared/ssh/config new file mode 100644 index 0000000..15ae7a4 --- /dev/null +++ b/home-manager/shared/ssh/config @@ -0,0 +1,20 @@ +Host wheatley +HostName 10.0.0.1 +User lillian +Port 22 + +Host GLaDOS +HostName 10.0.0.2 +User lillian +Port 22 + +Host EDI +HostName 10.0.0.3 +User lillian +Port 22 + +Host Shodan +HostName 10.0.0.4 +User lillian +Port 22 + diff --git a/home-manager/shared/ssh/default.nix b/home-manager/shared/ssh/default.nix new file mode 100644 index 0000000..8dccaac --- /dev/null +++ b/home-manager/shared/ssh/default.nix @@ -0,0 +1,8 @@ +{...}: { + # TODO: make this dynamic instead of hard coded + home.file."config" = { + source = ./config; + target = ".config/ssh/config"; + force = true; + }; +}