dotfiles/nixos/tailscale.nix

14 lines
289 B
Nix
Raw Normal View History

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