diff options
author | tv <tv@shackspace.de> | 2015-06-22 15:24:09 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-06-22 15:24:09 +0200 |
commit | 53305dc496f7f15504a8ef2f1f9511fb0b2f78ab (patch) | |
tree | 273daca78a42d1f8d8ef4bd5ef6ea33598bfc618 /modules/tv/iptables/default.nix | |
parent | 1538630782ac8c56d549af4fcac4c9abcba8c9c5 (diff) |
tv: modularize iptables configuration
Diffstat (limited to 'modules/tv/iptables/default.nix')
-rw-r--r-- | modules/tv/iptables/default.nix | 11 |
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'); +} |