mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 16:36:24 +00:00
13 lines
306 B
Nix
13 lines
306 B
Nix
{ config, pkgs, ... }: {
|
|
environment.systemPackages = with pkgs; [ tailscale ];
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
networking = {
|
|
firewall = {
|
|
checkReversePath = "loose";
|
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
|
trustedInterfaces = [ "tailscale0" ];
|
|
};
|
|
};
|
|
}
|