blob: 1ffc1cecd41b52f7a58b4c9e22021ad0f8a51dbc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ config, ... }:
{
systemd.services.tailscale-up = {
after = [ "tailscaled.service" ];
requires = [ "tailscaled.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "/run/current-system/sw/bin/tailscale up --authkey ${config.sops.secrets.tailscale_authentication_key.path}";
Restart = "on-failure";
};
};
}
|