setup automatic tailscale connection

This commit is contained in:
Infinidoge 2024-12-07 18:28:24 -05:00
parent bb53626336
commit 75008ffe53
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 16 additions and 0 deletions

View file

@ -35,4 +35,20 @@ in
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;
}; };
services.tailscale = {
enable = true;
extraUpFlags = [ "--advertise-tags" "tag:kiosk" ];
authKeyFile = ./tailscale-client-secret.key;
authKeyParameters.ephemeral = false;
openFirewall = true;
};
networking.firewall.trustedInterfaces = [ "tailscale0" ];
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "yes";
};
};
} }

BIN
tailscale-client-secret.key Normal file

Binary file not shown.