Use Tailscale

This commit is contained in:
2022-06-23 22:30:07 -04:00
parent eef574c9f7
commit aa7bbc5932
5 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
{ config, lib, ... }:
with lib;
let
cfg = config.services.tailscale;
in
{
options.services.tailscale.exitNode = mkEnableOption "Enable exit node support";
config.services.tailscale.enable = true;
# exit node
config.networking.firewall.checkReversePath = mkIf cfg.exitNode "loose";
config.networking.ip_forward = mkIf cfg.exitNode true;
}