Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
13 lines
521 B
Nix
13 lines
521 B
Nix
{ config, lib, ... }: {
|
|
age.secrets.tailscale_auth.file = ../../secrets/tailscale_auth.age;
|
|
me.binds."/var/lib/tailscale" = "tailscale";
|
|
networking.firewall.trustedInterfaces = [ "tailscale0" ];
|
|
networking.firewall.allowedUdpPorts = lib.mkIf config.me.environment == "headless" [ 123 ];
|
|
|
|
services.tailscale = {
|
|
enable = true;
|
|
authKeyFile = config.age.secrets.tailscale_auth.path;
|
|
openFirewall = true;
|
|
useRoutingFeatures = if config.me.environment == "headless" then "both" else "client";
|
|
};
|
|
}
|