diff options
author | tv <tv@shackspace.de> | 2015-06-22 20:11:02 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-06-22 20:11:02 +0200 |
commit | 68a968ac1b1a077494efb56e18c83e79fe0bae7f (patch) | |
tree | 385aed841a2d9f7320ca35a3ce67093cb5b8470e /modules/tv/retiolum/default.nix | |
parent | f825bf5e9eb43c0c3c5858b8ca60f2c4e5d66921 (diff) |
tv retiolum: split module into options and config
Diffstat (limited to 'modules/tv/retiolum/default.nix')
-rw-r--r-- | modules/tv/retiolum/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/tv/retiolum/default.nix b/modules/tv/retiolum/default.nix new file mode 100644 index 000000000..93b0be097 --- /dev/null +++ b/modules/tv/retiolum/default.nix @@ -0,0 +1,11 @@ +arg@{ config, pkgs, lib, ... }: + +let + cfg = config.tv.retiolum; + arg' = arg // { inherit cfg; }; +in + +{ + options.tv.retiolum = import ./options.nix arg'; + config = lib.mkIf cfg.enable (import ./config.nix arg'); +} |