diff options
author | tv <tv@shackspace.de> | 2015-06-22 18:20:25 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-06-22 18:20:25 +0200 |
commit | 964855f30bcb36869f24cb8474b9a0c44f58a736 (patch) | |
tree | 1056515620276960498f3c7455624802d6173620 /modules/tv/nginx/default.nix | |
parent | f2c8dbe4d126501e271e58c8a3ee3130c46dc0b9 (diff) |
tv: modularize nginx
Diffstat (limited to 'modules/tv/nginx/default.nix')
-rw-r--r-- | modules/tv/nginx/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/tv/nginx/default.nix b/modules/tv/nginx/default.nix new file mode 100644 index 000000000..49133fbb3 --- /dev/null +++ b/modules/tv/nginx/default.nix @@ -0,0 +1,11 @@ +arg@{ config, pkgs, lib, ... }: + +let + cfg = config.tv.nginx; + arg' = arg // { inherit cfg; }; +in + +{ + options.tv.nginx = import ./options.nix arg'; + config = lib.mkIf cfg.enable (import ./config.nix arg'); +} |