3 lass.iptables: refactor imports
This commit is contained in:
parent
a15a6f93ac
commit
e478f140e0
@ -2,7 +2,28 @@ arg@{ config, lib, pkgs, ... }:
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs) writeScript writeText;
|
inherit (pkgs) writeScript writeText;
|
||||||
inherit (lib) concatMapStringsSep concatStringsSep attrNames unique fold any attrValues catAttrs filter flatten length hasAttr mkEnableOption mkOption mkIf types;
|
|
||||||
|
inherit (lib)
|
||||||
|
concatMapStringsSep
|
||||||
|
concatStringsSep
|
||||||
|
attrNames
|
||||||
|
unique
|
||||||
|
fold
|
||||||
|
any
|
||||||
|
attrValues
|
||||||
|
catAttrs
|
||||||
|
filter
|
||||||
|
flatten
|
||||||
|
length
|
||||||
|
hasAttr
|
||||||
|
mkEnableOption
|
||||||
|
mkOption
|
||||||
|
mkIf
|
||||||
|
types
|
||||||
|
sort;
|
||||||
|
|
||||||
|
elemIsIn = a: as:
|
||||||
|
any (x: x == a) as;
|
||||||
|
|
||||||
cfg = config.lass.iptables;
|
cfg = config.lass.iptables;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user