diff options
| author | Fuwn <[email protected]> | 2024-09-20 02:12:28 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-20 02:12:28 -0700 |
| commit | e8fce7b693ce47aad5c1ea9c661bfff36ee5da17 (patch) | |
| tree | 3fdc60a19f0d629ebb407f71b58aff91d7c13f30 /hosts | |
| parent | development: add wakatime-ls (diff) | |
| download | nixos-config-e8fce7b693ce47aad5c1ea9c661bfff36ee5da17.tar.xz nixos-config-e8fce7b693ce47aad5c1ea9c661bfff36ee5da17.zip | |
himeji: tailscale up on boot
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/himeji/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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"; |