stockholm/old/modules/tv/iptables/default.nix
2015-07-11 19:44:12 +02:00

12 lines
217 B
Nix

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');
}