summaryrefslogtreecommitdiffstats
path: root/3modules/lass/iptables.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-07-18 13:29:07 +0200
committerlassulus <lass@aidsballs.de>2015-07-18 14:11:11 +0200
commite478f140e0e704f9985db039eb178be13af63abb (patch)
tree4a05a7c376a61201232778fa0a32821df7e3023e /3modules/lass/iptables.nix
parenta15a6f93ac12856a532e288d9419feaeb4df951f (diff)
3 lass.iptables: refactor imports
Diffstat (limited to '3modules/lass/iptables.nix')
-rw-r--r--3modules/lass/iptables.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/3modules/lass/iptables.nix b/3modules/lass/iptables.nix
index 6d567ca23..1cd6d3f8e 100644
--- a/3modules/lass/iptables.nix
+++ b/3modules/lass/iptables.nix
@@ -2,7 +2,28 @@ arg@{ config, lib, pkgs, ... }:
let
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;