From 967467e1519e4f9ae4da4f7e6bb015fb0ad89ad8 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Tue, 29 Apr 2025 10:04:26 +0200 Subject: [PATCH] fix: add default value for custom rules --- modules/cloonar-assistant/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/cloonar-assistant/default.nix b/modules/cloonar-assistant/default.nix index 2ce327c..fea0992 100644 --- a/modules/cloonar-assistant/default.nix +++ b/modules/cloonar-assistant/default.nix @@ -149,6 +149,7 @@ in { custom-rules = { input = lib.mkOption { type = with types; nullOr lines; + default = ''''; example = '' iifname "lan" udp dport 22 counter accept comment "Wireguard traffic" iifname "lan" udp dport 80 counter accept comment "Wireguard traffic" @@ -157,6 +158,7 @@ in { }; forward = lib.mkOption { type = with types; nullOr lines; + default = ''''; example = '' iifname "lan" oifname "server" tcp dport { 22 } counter accept iifname "lan" oifname "server" tcp dport { 80 } counter accept @@ -165,6 +167,7 @@ in { }; prerouting = lib.mkOption { type = with types; nullOr lines; + default = ''''; example = '' iifname "server" ip daddr 10.0.96.255 udp dport { 9 } dnat to 10.0.96.255 ''; @@ -172,6 +175,7 @@ in { }; postrouting = lib.mkOption { type = with types; nullOr lines; + default = ''''; example = '' oifname { "wan" } masquerade '';