Skip to content

Commit

Permalink
Improve error for empty rules to mention ignoreEmptyRule
Browse files Browse the repository at this point in the history
  • Loading branch information
thelegy committed Dec 22, 2023
1 parent 9dc5ac9 commit 3bf23ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/zoned.nix
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ in {
assertion = config.ignoreEmptyRule || hasAllowedTCPPorts || hasAllowedUDPPorts || hasAllowedTCPPortRanges || hasAllowedUDPPortRanges || hasVerdict || hasMasquerade || hasExtraLines;
message = ''
You need to specify at least of of the following for `networking.nftables.firewall.rules."${name}"`:
allowedTCPPorts, allowedUDPPorts, allowedTCPPortRanges, allowedUDPPortRanges, verdict, extraLines
allowedTCPPorts, allowedUDPPorts, allowedTCPPortRanges, allowedUDPPortRanges, verdict, extraLines, ignoreEmptyRule
'';
}
];
Expand Down

0 comments on commit 3bf23ae

Please sign in to comment.