Files
proxy-suite-flake/modules/proxy-suite/options/proxy-tun.nix
T
2026-10-05 22:44:09 +05:00

30 lines
646 B
Nix

{ lib, ... }:
let
inherit (lib) mkEnableOption mkOption types;
inherit (import ./lib.nix { inherit lib; }) interfaceType ipv4CidrType;
in
{
options.services.proxy-suite.proxy.tun = {
enable = mkEnableOption "global TUN mode";
interface = mkOption {
type = interfaceType;
default = "singtun0";
description = "TUN interface name.";
};
address = mkOption {
type = ipv4CidrType;
default = "172.19.0.1/30";
description = "TUN interface IPv4 address (CIDR).";
};
mtu = mkOption {
type = types.int;
default = 1400;
description = "TUN interface MTU.";
};
};
}