stockholm/3modules/tv/retiolum.nix

30 lines
436 B
Nix
Raw Normal View History

2015-07-24 09:22:21 +00:00
{ config, lib, ... }:
2015-07-11 14:55:22 +00:00
with lib;
let
cfg = config.tv.retiolum;
out = {
2015-07-24 09:22:21 +00:00
imports = [ ../../3modules/krebs/retiolum.nix ];
2015-07-11 14:55:22 +00:00
options.tv.retiolum = api;
config = mkIf cfg.enable imp;
};
api = {
2015-07-13 15:36:31 +00:00
enable = mkEnableOption "tv.retiolum";
2015-07-11 14:55:22 +00:00
2015-07-24 09:22:21 +00:00
connectTo = mkOption {
type = with types; listOf str;
2015-07-11 14:55:22 +00:00
};
hosts = mkOption {
2015-07-24 09:22:21 +00:00
type = types.path;
2015-07-11 14:55:22 +00:00
};
};
imp = {
2015-07-24 09:22:21 +00:00
krebs.retiolum = cfg;
2015-07-11 14:55:22 +00:00
};
2015-07-24 09:22:21 +00:00
in out