summaryrefslogtreecommitdiffstats
path: root/3modules/tv/retiolum.nix
blob: d003774465c2211ec8218ef7d10f14a1dc98d595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, lib, ... }:

with lib;
let
  cfg = config.tv.retiolum;

  out = {
    imports = [ ../../3modules/krebs/retiolum.nix ];
    options.tv.retiolum = api;
    config = mkIf cfg.enable imp;
  };

  api = {
    enable = mkEnableOption "tv.retiolum";

    connectTo = mkOption {
      type = with types; listOf str;
    };

    hosts = mkOption {
      type = types.path;
    };
  };

  imp = {
    krebs.retiolum = cfg;
  };

in out