13 lines
284 B
Nix
13 lines
284 B
Nix
{ lib, config, ... }:
|
|
{
|
|
options.my.tailscale.enable = lib.mkEnableOption "Tailscale VPN";
|
|
|
|
config = lib.mkIf config.my.tailscale.enable {
|
|
services.tailscale = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
networking.firewall.checkReversePath = "loose";
|
|
};
|
|
}
|