From 6de10bbf5aa370d7ffc908126efb40d99007488c Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 19 Apr 2019 16:14:53 +0200 Subject: init mb --- mb/3modules/default.nix | 6 ++++++ mb/3modules/hosts.nix | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 mb/3modules/default.nix create mode 100644 mb/3modules/hosts.nix (limited to 'mb/3modules') 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 ; + +{ + options.mb.hosts = mkOption { + type = types.attrsOf types.host; + default = + filterAttrs (_: host: host.owner.name == "mb" && host.ci) + config.krebs.hosts; + }; +} -- cgit v1.2.3