From e8fce7b693ce47aad5c1ea9c661bfff36ee5da17 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 20 Sep 2024 02:12:28 -0700 Subject: himeji: tailscale up on boot --- hosts/himeji/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hosts') diff --git a/hosts/himeji/default.nix b/hosts/himeji/default.nix index 00117b2..e00c2df 100644 --- a/hosts/himeji/default.nix +++ b/hosts/himeji/default.nix @@ -35,6 +35,17 @@ in ]; }; + systemd.services.tailscale-up = { + after = [ "tailscaled.service" ]; + requires = [ "tailscaled.service" ]; + wantedBy = [ "multi-user.target" ]; + + serviceConfig = { + ExecStart = "/run/current-system/sw/bin/tailscale up --authkey ${secrets.tailscale_authentication_key}"; + Restart = "on-failure"; + }; + }; + virtualisation = { containers.enable = true; docker.enable = containerEngine == "docker"; -- cgit v1.2.3