summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-20 02:12:28 -0700
committerFuwn <[email protected]>2024-09-20 02:12:28 -0700
commite8fce7b693ce47aad5c1ea9c661bfff36ee5da17 (patch)
tree3fdc60a19f0d629ebb407f71b58aff91d7c13f30 /hosts
parentdevelopment: add wakatime-ls (diff)
downloadnixos-config-e8fce7b693ce47aad5c1ea9c661bfff36ee5da17.tar.xz
nixos-config-e8fce7b693ce47aad5c1ea9c661bfff36ee5da17.zip
himeji: tailscale up on boot
Diffstat (limited to 'hosts')
-rw-r--r--hosts/himeji/default.nix11
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";