config/profiles/tailscale-exit-node.nix

16 lines
513 B
Nix
Raw Permalink Normal View History

2024-10-14 11:36:47 +02:00
{ config, ... }:
{
# exit nodes must be approved in admin interface
# https://login.tailscale.com/admin/machines
2024-11-15 04:46:33 +01:00
/* imports = [ ./tailscale-inner.nix ]; */
2024-10-14 11:36:47 +02:00
# if host is _upgraded_ to exit node, reload with
# sudo systemctl start tailscaled-autoconnect
# or maybe even
# sudo systemctl start tailscaled-set
services.tailscale.useRoutingFeatures = "both";
services.tailscale.extraSetFlags = [ "--advertise-exit-node" ];
2024-11-15 04:46:33 +01:00
services.tailscale.extraUpFlags = [ "--advertise-exit-node" ];
2024-10-14 11:36:47 +02:00
}