Generate colmena and hydraJobs outputs from the same hosts attribute set
This commit is contained in:
parent
5856edeb47
commit
59a7e36838
3 changed files with 15 additions and 6 deletions
13
helper.nix
13
helper.nix
|
@ -19,8 +19,13 @@
|
|||
system,
|
||||
modules,
|
||||
...
|
||||
}:
|
||||
(nixpkgs.lib.filterAttrs (name: host: (builtins.substring 0 1 name) != "_") (hostNixpkgs.lib.nixosSystem {
|
||||
inherit system modules;
|
||||
})).config.system.build.toplevel;
|
||||
}:
|
||||
let
|
||||
# Filter attritubes starting with _ to avoid infinite recursion when building with hydra
|
||||
# TODO: Why does this happen?
|
||||
filter = name: host: (builtins.substring 0 1 name) != "_";
|
||||
in
|
||||
(nixpkgs.lib.filterAttrs filter (hostNixpkgs.lib.nixosSystem {
|
||||
inherit system modules;
|
||||
})).config.system.build.toplevel; # Builds the entire NixOS system, see: https://nixos.org/manual/nixos/stable/#sec-building-parts
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue