summaryrefslogtreecommitdiffstats
path: root/modules/tv/iptables/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-06-22 15:24:09 +0200
committertv <tv@shackspace.de>2015-06-22 15:24:09 +0200
commit53305dc496f7f15504a8ef2f1f9511fb0b2f78ab (patch)
tree273daca78a42d1f8d8ef4bd5ef6ea33598bfc618 /modules/tv/iptables/default.nix
parent1538630782ac8c56d549af4fcac4c9abcba8c9c5 (diff)
tv: modularize iptables configuration
Diffstat (limited to 'modules/tv/iptables/default.nix')
-rw-r--r--modules/tv/iptables/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/tv/iptables/default.nix b/modules/tv/iptables/default.nix
new file mode 100644
index 000000000..cf27a26ac
--- /dev/null
+++ b/modules/tv/iptables/default.nix
@@ -0,0 +1,11 @@
+arg@{ config, lib, pkgs, ... }:
+
+let
+ cfg = config.tv.iptables;
+ arg' = arg // { inherit cfg; };
+in
+
+{
+ options.tv.iptables = import ./options.nix arg';
+ config = lib.mkIf cfg.enable (import ./config.nix arg');
+}