flake: make host check more dynamic

Closes 7f6c7c5
This commit is contained in:
Aaron Bieber 2023-03-09 09:33:25 -07:00
parent 84b6c958dd
commit 4d7e73dee2
No known key found for this signature in database

View File

@ -313,16 +313,13 @@
description = "OCaml template."; description = "OCaml template.";
}; };
# TODO: magicify this to be built of a list checks = let buildList = [ "europa" "stan" "h" "box" "faf" ];
checks.x86_64-linux.europa = in with unstable.lib;
self.nixosConfigurations.europa.config.system.build.toplevel; foldl' recursiveUpdate { } (mapAttrsToList (name: system: {
checks.x86_64-linux.stan = "${system.pkgs.stdenv.hostPlatform.system}"."${name}" =
self.nixosConfigurations.europa.config.system.build.toplevel; system.config.system.build.toplevel;
checks.x86_64-linux.h = }) (filterAttrs
self.nixosConfigurations.h.config.system.build.toplevel; (n: v: (builtins.elem n buildList))
checks.x86_64-linux.box = self.nixosConfigurations));
self.nixosConfigurations.box.config.system.build.toplevel;
checks.x86_64-linux.faf =
self.nixosConfigurations.faf.config.system.build.toplevel;
}; };
} }