summary refs log tree commit diff
path: root/mixins/tailscale.nix
blob: 0822d9758d423677bbb6001c6c1bf2d0ee94e0e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  pkgs,
  config,
  ...
}: {
  config = {
    services.tailscale.enable = true;
    networking.firewall = {
      trustedInterfaces = ["tailscale0"];
      allowedUDPPorts = [41641];
    };

    environment.persistence."/nix/persist".directories = ["/var/lib/tailscale"];
  };
}