nicks-nix-config/hosts/Alaska/modules/tailscale.nix

13 lines
377 B
Nix

{ config, ... }:
{
# tailscale up --login-server <headscale_url>
# run this command to add this node to the server ^
services.tailscale.enable = true;
# Defined here to indicate the settings are related
networking.firewall = {
checkReversePath = "loose";
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}