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