flake: split hydra into module
This commit is contained in:
parent
41aa6a2850
commit
c88c84baba
1 changed files with 21 additions and 0 deletions
21
hydra.nix
Normal file
21
hydra.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ self, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
isBroken = _: lib.filterAttrs (n: v: v ? meta -> v.meta ? broken -> !v.meta.broken);
|
||||||
|
|
||||||
|
getTopLevel = (name: { toplevel = self.nixosConfigurations.${name}.config.system.build.toplevel; });
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.hydraJobs = {
|
||||||
|
packages = lib.mapAttrs isBroken self.packages;
|
||||||
|
nixosConfigurations.x86_64-linux = lib.flip lib.genAttrs getTopLevel [
|
||||||
|
"Infini-DESKTOP"
|
||||||
|
"Infini-DL360"
|
||||||
|
"Infini-FRAMEWORK"
|
||||||
|
"Infini-OPTIPLEX"
|
||||||
|
"Infini-SERVER"
|
||||||
|
"hermes"
|
||||||
|
"hestia"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue