aboutsummaryrefslogtreecommitdiff
path: root/hosts/tower/network.nix
blob: 09a97a377dfd489e1cfd6f887c524874966a35ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, ... }:
{
  networking = {
    hostName = "tower";
    networkmanager.enable = true;
    firewall = {
      checkReversePath = "loose";
      trustedInterfaces = [ "tailscale0" ];
      allowedUDPPorts = [ config.services.tailscale.port ];
    };
  };

  services.tailscale = {
    enable = true;
    openFirewall = true;
  };
}