blob: 3ad7f0687dcd5c6a52af99870af182c80abe87c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ secrets, ... }:
{
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";
};
};
}
|