stockholm/modules/tv/iptables/default.nix

12 lines
217 B
Nix
Raw Normal View History

2015-06-22 13:24:09 +00:00
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');
}