l 3: add hosts.nix

This commit is contained in:
lassulus 2016-10-11 17:51:22 +02:00
parent 88bb31e8d2
commit b6c5994e03
2 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,7 @@ _:
imports = [
./ejabberd
./folderPerms.nix
./hosts.nix
./mysql-backup.nix
./umts.nix
./urxvtd.nix

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

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