networking/nftables: make ruleset+rulesetFile non-exclusive
This commit is contained in:
parent
a1dd69d761
commit
6658b3fcf1
1 changed files with 3 additions and 2 deletions
|
@ -273,9 +273,10 @@ in
|
|||
${table.content}
|
||||
}
|
||||
'') enabledTables)}
|
||||
${if cfg.rulesetFile != null then ''
|
||||
${cfg.ruleset}
|
||||
${lib.optionalString (cfg.rulesetFile != null) ''
|
||||
include "${cfg.rulesetFile}"
|
||||
'' else cfg.ruleset}
|
||||
''}
|
||||
'';
|
||||
checkPhase = lib.optionalString cfg.checkRuleset ''
|
||||
cp $out ruleset.conf
|
||||
|
|
Loading…
Reference in a new issue