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";