From 02067516a864c64cb87e08457b5ccf662d3a6287 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 11 Jul 2024 05:13:00 -0700 Subject: [PATCH] ssh: home network option for ssh --- home/modules/ssh.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/modules/ssh.nix b/home/modules/ssh.nix index 06befc0..c3c1e8c 100644 --- a/home/modules/ssh.nix +++ b/home/modules/ssh.nix @@ -6,6 +6,8 @@ in { options.snowhawk.ssh = { enable = lib.mkEnableOption "ssh"; + + homeNetwork = lib.mkEnableOption "include local hostnames for home network devices"; }; config = lib.mkIf cfg.enable { @@ -23,7 +25,7 @@ in user = "zynh"; identityFile = "${config.home.homeDirectory}/.ssh/msiserver"; }; - "msiserver.local" = { + "msiserver.local" = lib.mkIf cfg.homeNetwork { hostname = "msiserver"; user = "zynh"; identityFile = "${config.home.homeDirectory}/.ssh/msiserver";