mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
13 lines
275 B
Nix
13 lines
275 B
Nix
{config, ...}: {
|
||
# Enable tailscale
|
||
services.tailscale = {
|
||
enable = true;
|
||
};
|
||
|
||
# Allow tailscale through firewall
|
||
networking.firewall = {
|
||
enable = true;
|
||
trustedInterfaces = ["tailscale0"];
|
||
allowedUDPPorts = [config.services.tailscale.port];
|
||
};
|
||
}
|