From 8c86257b4b9697c471172f4a1eae8e43aa6f9b3d Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 10 Feb 2026 15:29:06 -0600 Subject: [PATCH] bug: stop trying to auto-set all tailscale things --- modules/nixos/tailscale.nix | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/modules/nixos/tailscale.nix b/modules/nixos/tailscale.nix index 4e6f916..d564cb4 100644 --- a/modules/nixos/tailscale.nix +++ b/modules/nixos/tailscale.nix @@ -1,5 +1,4 @@ { - pkgs, lib, config, ... @@ -8,17 +7,6 @@ let cfg = config.greg.tailscale; tags = lib.concatMapStringsSep "," (s: "tag:${s}") cfg.tags; - setScript = pkgs.writeShellApplication { - name = "tailscale-set"; - runtimeInputs = [ - config.services.tailscale.package - ]; - text = '' - tailscale set --accept-routes - tailscale set --hostname ${cfg.hostname} - '' - + lib.optionalString ((builtins.length cfg.tags) > 0) "tailscale set --advertise-tags ${tags}"; - }; in { options = { @@ -58,15 +46,6 @@ in useRoutingFeatures = "both"; }; systemd.services = { - tailscale-set = { - enable = true; - after = [ - "tailscaled.service" - "tailscale-autoconnect.service" - ]; - partOf = [ "network-online.target" ]; - script = lib.getExe setScript; - }; tailscaled.partOf = [ "network-online.target" ]; }; };