diff --git a/hydra.nix b/hydra.nix new file mode 100644 index 0000000..67614c5 --- /dev/null +++ b/hydra.nix @@ -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" + ]; + }; +}