dotfiles/nixos/tailscale.nix
2021-06-12 15:18:43 +01:00

13 lines
289 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.tailscale ];
services.tailscale = {
enable = true;
package = pkgs.tailscale;
};
networking.firewall = {
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}