1
0

firewall: remove unused args/names/vars

This commit is contained in:
Daniel Barlow 2025-03-27 18:40:07 +00:00
parent 9ecd2b4fb4
commit 420320e434

View File

@ -3,13 +3,9 @@
lib, lib,
firewallgen, firewallgen,
nftables, nftables,
writeFennel,
anoia,
svc, svc,
lua, lua,
output-template, output-template,
lualinux,
linotify,
}: }:
{ {
rules, rules,
@ -20,7 +16,6 @@ let
inherit (liminix.services) longrun; inherit (liminix.services) longrun;
inherit (lib.attrsets) mapAttrs' nameValuePair mapAttrsToList; inherit (lib.attrsets) mapAttrs' nameValuePair mapAttrsToList;
inherit (lib.strings) concatStringsSep; inherit (lib.strings) concatStringsSep;
inherit (lib.lists) flatten;
inherit (builtins) concatLists toJSON attrValues; inherit (builtins) concatLists toJSON attrValues;
inherit (liminix) outputRef; inherit (liminix) outputRef;
mkSet = mkSet =
@ -76,7 +71,6 @@ let
extraRules extraRules
(lib.recursiveUpdate sets rules)); (lib.recursiveUpdate sets rules));
script = firewallgen "firewall1.nft" allRules; script = firewallgen "firewall1.nft" allRules;
watchArg = z: intfs: map (i: "${z}:${i}") intfs;
name = "firewall"; name = "firewall";
service = longrun { service = longrun {
inherit name; inherit name;