diff --git a/hosts/hl-minipc1.nix b/hosts/hl-minipc1.nix index 09ebbec..1b1d865 100644 --- a/hosts/hl-minipc1.nix +++ b/hosts/hl-minipc1.nix @@ -16,9 +16,9 @@ in skyg.server.admin.enable = true; skyg.server.exporters.enable = true; skyg.networkDrives = { - enable = true; + enable = false; }; - + skyg.core.tailscaleRouting = "both"; # # Nix Stores services.nix-serve = { enable = true; diff --git a/modules/nixos/common/networking.nix b/modules/nixos/common/networking.nix index eebf529..c80e447 100644 --- a/modules/nixos/common/networking.nix +++ b/modules/nixos/common/networking.nix @@ -9,6 +9,10 @@ in description = "Machine Hostname"; type = lib.types.str; }; + tailscaleRouting = lib.mkOption { + type = lib.types.str; + default = "client"; + }; }; }; config = { @@ -23,7 +27,7 @@ in # Tailscale services.tailscale.enable = true; - services.tailscale.useRoutingFeatures = "client"; + services.tailscale.useRoutingFeatures = cfg.tailscaleRouting; # Disable the flaky nm service systemd.services.NetworkManager-wait-online.enable = false;