2026-05-01 22:39:21 +02:00
|
|
|
{ lib, config, ... }:
|
2025-09-13 18:08:41 +02:00
|
|
|
{
|
2026-05-01 22:39:21 +02:00
|
|
|
options.my.tailscale.enable = lib.mkEnableOption "Tailscale VPN";
|
|
|
|
|
|
|
|
|
|
config = lib.mkIf config.my.tailscale.enable {
|
|
|
|
|
services.tailscale = {
|
|
|
|
|
enable = true;
|
|
|
|
|
openFirewall = true;
|
|
|
|
|
};
|
2025-09-13 18:08:41 +02:00
|
|
|
|
2026-05-01 22:39:21 +02:00
|
|
|
networking.firewall.checkReversePath = "loose";
|
|
|
|
|
};
|
2025-09-13 18:08:41 +02:00
|
|
|
}
|