summaryrefslogtreecommitdiffstats
path: root/mb/3modules
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2019-04-28 15:05:34 +0200
committerjeschli <jeschli@gmail.com>2019-04-28 15:05:34 +0200
commita09ce53832d281397e127fed537f585239ed721d (patch)
treead71d0f0c5908b4a126f4272e3c35db467079f79 /mb/3modules
parent55616751967d510145e5255398347930be535389 (diff)
parentf5f3275ac968caaeba398e183c7d404adfeb10e1 (diff)
Merge branch 'master' of prism.r:stockholm
Diffstat (limited to 'mb/3modules')
-rw-r--r--mb/3modules/default.nix6
-rw-r--r--mb/3modules/hosts.nix12
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;
+ };
+}