hosts/pi-server | re-enable tailscale

This commit is contained in:
Don Harper 2025-12-02 15:51:40 -06:00
parent 7e42c835c7
commit a75a667c52

View file

@ -74,6 +74,7 @@
services = {
beszel-agent = {enable = true;};
nscd = {enableNsncd = true;};
tailscale = {enable = true;};
locate = {
enable = true;
package = pkgs.mlocate;
@ -119,7 +120,7 @@
};
zramSwap = {
enable = true;
enable = false;
memoryPercent = 25;
memoryMax = 2147483648;
};
@ -152,7 +153,21 @@
# Open ports in the firewall.
networking.firewall = {
enable = true;
trustedInterfaces = ["tailscale0"];
checkReversePath = "loose";
allowedUDPPorts = [config.services.tailscale.port];
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedUDPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedTCPPorts = [22];
};