mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(nftables): broken include symlinks
This commit is contained in:
parent
8595762c7b
commit
ceeb079b58
1 changed files with 3 additions and 1 deletions
|
|
@ -47,10 +47,12 @@ in {
|
|||
mkBefore nft)
|
||||
cfg.ranges;
|
||||
condition = "ip6 saddr { ${concatStringsSep "," (mapAttrsToList (name: _: "$" + mkNftName name) cfg.ranges)} }";
|
||||
mkInclude = name: ''include "${cfg.stateDir}/${name}*.nft"'';
|
||||
includes = mapAttrsToList (name: _: mkBefore (mkInclude name)) cfg.ranges;
|
||||
in {
|
||||
nftables.ruleset = mkIf cfg.enable (mkMerge (
|
||||
nftRanges
|
||||
++ [(mkBefore ''include "${cfg.stateDir}/*.nft"'')]
|
||||
++ includes
|
||||
));
|
||||
firewall.interfaces.peeps = {
|
||||
nftables.enable = cfg.enable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue