diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-18 07:04:18 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-18 07:04:18 -0600 |
| commit | 5c4484e206087b0be5723b0f79728fdeb1af7f82 (patch) | |
| tree | 7c225ed8999013e82d356598ca0baacd4339561a | |
| parent | c077985d73e021de9b7878dc8864352aff9ad1bd (diff) | |
make tailscale start at the right time
| -rw-r--r-- | modules/services/nixos/tailscale.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/services/nixos/tailscale.nix b/modules/services/nixos/tailscale.nix index 6af3c1c..50e35d3 100644 --- a/modules/services/nixos/tailscale.nix +++ b/modules/services/nixos/tailscale.nix @@ -19,10 +19,16 @@ in }; # don't start tailscale until after headscale starts - systemd.services."tailscaled" = lib.mkIf config.collinux.services.selfhost.headscale.enable { - wants = lib.mkForce ["network.target" "headscale.target"]; - after = lib.mkForce ["network.target" "headscale.target"]; - }; + systemd.services."tailscaled" = + if config.collinux.services.selfhost.headscale.enable + then { + wants = lib.mkForce ["network.target" "headscale.target"]; + after = lib.mkForce ["network.target" "headscale.target"]; + } + else { + wants = lib.mkForce ["network.target"]; + after = lib.mkForce ["network.target"]; + }; environment.systemPackages = [pkgs.tailscale]; } |
