diff options
author | lassulus <lass@aidsballs.de> | 2016-10-11 17:51:22 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-10-11 17:51:22 +0200 |
commit | b6c5994e037ab92055f5cfdeb89f46864b348b39 (patch) | |
tree | 08ccdd7517b995f2c94343c2a8bec57169605c39 /lass/3modules/hosts.nix | |
parent | 88bb31e8d2ca330c14d4a6e843d7cd7b1909d815 (diff) |
l 3: add hosts.nix
Diffstat (limited to 'lass/3modules/hosts.nix')
-rw-r--r-- | lass/3modules/hosts.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lass/3modules/hosts.nix b/lass/3modules/hosts.nix new file mode 100644 index 000000000..f2ff10c06 --- /dev/null +++ b/lass/3modules/hosts.nix @@ -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; + }; +} |