summaryrefslogtreecommitdiffstats
path: root/tv/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-01-05 21:03:23 +0100
committertv <tv@krebsco.de>2017-01-05 21:03:23 +0100
commitbbad1fe31f878b45669dcac030bc3e5de0efccc4 (patch)
tree5a6af7129fb971d1813a8e03aa0117c9023fc2ba /tv/3modules
parent2b7ad3c8caf1d818657055ecef580af6138346ae (diff)
tv: use body instead of out
Diffstat (limited to 'tv/3modules')
-rw-r--r--tv/3modules/iptables.nix16
1 files changed, 3 insertions, 13 deletions
diff --git a/tv/3modules/iptables.nix b/tv/3modules/iptables.nix
index 7276726..803ed6f 100644
--- a/tv/3modules/iptables.nix
+++ b/tv/3modules/iptables.nix
@@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;
-let
+let {
cfg = config.tv.iptables;
- out = {
+ body = {
options.tv.iptables = api;
config = lib.mkIf cfg.enable imp;
};
@@ -146,14 +146,4 @@ let
)}
COMMIT
'';
-in out
-
-#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');
-#}
+}