summary refs log tree commit diff
path: root/mixins/tailscale.nix
blob: ccefc48e4bdf668724a2cf04c578468e0126127a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ pkgs, config, ... }:

{
  config = {
    services.tailscale.enable = true;
    networking.firewall = {
      trustedInterfaces = [ "tailscale0" ];
      allowedUDPPorts = [41641];
    };

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