bug: stop trying to auto-set all tailscale things

This commit is contained in:
Greg Hellings
2026-02-10 15:29:06 -06:00
parent b9eaea9aec
commit 8c86257b4b
-21
View File
@@ -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" ];
};
};