14 Commits
Author SHA1 Message Date
Dave AndersonandWill Norris 41e9dc91ec flake.nix: don't wait for network-online.target to start golink
golink is a tsnet service, and Tailscale's data plane is very good at monitoring for changes to network state and reacting to them. As such, it doesn't need to wait for network-online.target, it can start up concurrently with everything else and shorten the long pole of bootup.

Additionally, network-online.target is an antipattern in systemd that almost never means what people want it to mean. "Online" has no precise definition, and (I posit) almost never matches the ideal version of "online" that people have in their mind. It specifically does _not_ mean that the network functions, or that any particular flavor of connectivity exists. A machine behind a captive portal is "online" for the purposes of bootup, and so is a machine that got a DHCP lease but is having all its packets blackholed. Systemd has a whole page of documentation on "what does online even mean", because this is such a recurring point of confusion: https://systemd.io/NETWORK_ONLINE/

It is almost always wrong to depend on network-online.target, and I wish it was named slow-down-boot-for-no-reason.target, which is how most downstream programs use it.

</rant>, the point is, golink is a well-behaved service that reacts to connectivity changes on the fly (it has to, that's what tailscale does), and so can be started concurrently with networking and other services.
2024-04-25 09:20:28 -07:00
Will NorrisandWill Norris b76177ac91 go.mod: use latest stable build of tailscale
We have fixed the issue in the corp repo that required us to use
pseudo-versions for the tailscale.com module here. So we can now switch
to the latest stable version.

Signed-off-by: Will Norris <will@tailscale.com>
2024-03-01 12:01:05 -08:00
Patrick O'DohertyandWill Norris 38cb010901 flake.nix: bump flake & build 1.22 go module
Resolve broken nix build due to us using Go 1.21 to build a 1.22 minimum
package.

Signed-off-by: Patrick O'Doherty <patrick@tailscale.com>
2024-02-28 17:00:00 -08:00
PatkaandGitHub d9de913fb1 Replace deprecated Nix vendorSha256 call with vendorHash (#110)
Signed-off-by: Patka <patka@patka.dev>
2024-01-26 08:55:06 -08:00
Emil NikolovandDave Anderson b75983b637 service: explicitly depend on network-online.target
Signed-off-by: Emil Nikolov <emil.e.nikolov@gmail.com>
2024-01-20 23:22:21 -08:00
M. J. FrombergerandGitHub 5ee5a81391 go.mod: update tailscale.com to commit ca48db0d606d (#106)
Updates #96

Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
2024-01-11 08:37:35 -08:00
M. J. FrombergerandGitHub 4d96c55246 go.mod: update tailscale.com to v1.56.1 (#105)
Previous versions flag a potential security fix in the admin panel.

Updates #96

Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
2024-01-11 07:58:06 -08:00
Will NorrisandWill Norris 97cee318a6 go.mod: bump to tailscale 1.52.0
Technically, this is one commit before the 1.52.0 tag to keep it a
pseudo-version.

Signed-off-by: Will Norris <will@tailscale.com>
2023-10-30 20:29:58 -07:00
Kristoffer DalbyandWill Norris 3eb57635ae nix: update flake hash to mirror go.mod
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-05-02 11:40:12 -07:00
Will NorrisandWill Norris ec2a3e94c6 go.mod: bump tailscale.com version
Signed-off-by: Will Norris <will@tailscale.com>
2023-05-01 20:55:34 -07:00
Maisem AliandGitHub acd564144f go.mod: bump tailscale.com from main (#67)
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2023-02-28 15:44:50 -08:00
Kristoffer DalbyandGitHub 9bf1f0a11e nix: update go to 1.20 in flake.nix (#66) 2023-02-28 18:39:06 +01:00
Kristoffer DalbyandGitHub d0a6324e2f nix: add script to update flake vendor hash (#65) 2023-02-28 18:35:14 +01:00
136d5ad3ec Add Flake file (Nix package, NixOS module) (#39)
* Add Flake file (Nix package, NixOS module)

This commit adds a Flake.nix file allowing Nix users to consume this
repo with `nix build`, `nix run` and adds a NixOS module to quickly spin
up the service.

* add github action file for nix build

---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Co-authored-by: Xe Iaso <me@xeiaso.net>
2023-01-27 16:19:41 +01:00