add both for routing feature when using exit node

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-05-23 07:11:47 -05:00
parent 2d3204290a
commit 62dd56d23b

View file

@ -35,7 +35,7 @@ in
services.tailscale = { services.tailscale = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
useRoutingFeatures = "client"; useRoutingFeatures = if cfg.enableExitNode then "both" else "client";
authKeyFile = lib.mkIf ( authKeyFile = lib.mkIf (
config ? age && config.age ? secrets && config.age.secrets ? headscale_auth config ? age && config.age ? secrets && config.age.secrets ? headscale_auth
) config.age.secrets.headscale_auth.path; ) config.age.secrets.headscale_auth.path;