networking/nftables: make ruleset+rulesetFile non-exclusive

This commit is contained in:
Maciej Krüger 2023-03-27 20:10:18 +02:00
parent a1dd69d761
commit 6658b3fcf1
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -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