summaryrefslogtreecommitdiffstats
path: root/modules/hosts.nix
blob: ba7ffe3b63c96c2335914c07770d3d4c6185e21a (plain)
1
2
3
4
5
6
7
8
{ config, lib, mylib, ... }: {
  options.tv.hosts = lib.mkOption {
    type = lib.types.attrsOf mylib.types.host;
    default =
      lib.filterAttrs (_: host: host.owner.name == "tv")
      config.krebs.hosts;
  };
}