tv.hosts: init

This commit is contained in:
tv 2016-08-02 21:51:39 +02:00
parent e6aef09ad4
commit 46d73a70ce
2 changed files with 13 additions and 0 deletions

View File

@ -4,6 +4,7 @@ _:
imports = [
./charybdis
./ejabberd
./hosts.nix
./iptables.nix
];
}

12
tv/3modules/hosts.nix Normal file
View File

@ -0,0 +1,12 @@
{ config, ... }:
with config.krebs.lib;
{
options.tv.hosts = mkOption {
type = types.attrsOf types.host;
default =
filterAttrs (_: host: host.owner.name == "tv")
config.krebs.hosts;
};
}