diff options
author | tv <tv@krebsco.de> | 2019-04-28 14:54:55 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-04-28 14:54:55 +0200 |
commit | 379250a52dad4f4ba3b00416a643d05fe7c37d3d (patch) | |
tree | 6dfb842695098e483461bfa7fd96a5b19e20eed6 /mb/3modules | |
parent | 65c824bdfe6770d24509cd64d1c3efa53ab532e4 (diff) | |
parent | f5f3275ac968caaeba398e183c7d404adfeb10e1 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'mb/3modules')
-rw-r--r-- | mb/3modules/default.nix | 6 | ||||
-rw-r--r-- | mb/3modules/hosts.nix | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/mb/3modules/default.nix b/mb/3modules/default.nix new file mode 100644 index 0000000..99d09d4 --- /dev/null +++ b/mb/3modules/default.nix @@ -0,0 +1,6 @@ +_: +{ + imports = [ + ./hosts.nix + ]; +} diff --git a/mb/3modules/hosts.nix b/mb/3modules/hosts.nix new file mode 100644 index 0000000..5dc9b5c --- /dev/null +++ b/mb/3modules/hosts.nix @@ -0,0 +1,12 @@ +{ config, ... }: + +with import <stockholm/lib>; + +{ + options.mb.hosts = mkOption { + type = types.attrsOf types.host; + default = + filterAttrs (_: host: host.owner.name == "mb" && host.ci) + config.krebs.hosts; + }; +} |