add some comments to the tailscale configuration and set the operator to ${user}

This commit is contained in:
cswimr 2025-01-11 18:10:31 -06:00
parent 6451843001
commit 3856e961ff
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -1,15 +1,20 @@
{ user, ...}:
{
services.tailscale = {
enable = true;
# When using this configuration, make sure to create a file at /run/secrets/tailscale
# with the contents of your Tailscale auth key.
# Make sure your permissions are set correctly, e.g. 0600.
# The secret file will be automatically deleted on system reboot.
# You do not need to recreate it again unless you remove the system from your Tailscale account.
authKeyFile = "/run/secrets/tailscale";
# change this to "server" if you are this device as an exit node
useRoutingFeatures = "client";
extraUpFlags = [
"--ssh"
"--accept-routes"
"--accept-dns"
"--operator=cswimr"
"--operator=${user}"
];
};
}