dotfiles/nixos/tailscale.nix

10 lines
245 B
Nix
Raw Normal View History

2021-06-12 15:07:38 +01:00
{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.tailscale ];
services.tailscale.enable = true;
networking.firewall = {
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}