flake: make host check more dynamic
Closes 7f6c7c5
This commit is contained in:
parent
84b6c958dd
commit
4d7e73dee2
19
flake.nix
19
flake.nix
@ -313,16 +313,13 @@
|
||||
description = "OCaml template.";
|
||||
};
|
||||
|
||||
# TODO: magicify this to be built of a list
|
||||
checks.x86_64-linux.europa =
|
||||
self.nixosConfigurations.europa.config.system.build.toplevel;
|
||||
checks.x86_64-linux.stan =
|
||||
self.nixosConfigurations.europa.config.system.build.toplevel;
|
||||
checks.x86_64-linux.h =
|
||||
self.nixosConfigurations.h.config.system.build.toplevel;
|
||||
checks.x86_64-linux.box =
|
||||
self.nixosConfigurations.box.config.system.build.toplevel;
|
||||
checks.x86_64-linux.faf =
|
||||
self.nixosConfigurations.faf.config.system.build.toplevel;
|
||||
checks = let buildList = [ "europa" "stan" "h" "box" "faf" ];
|
||||
in with unstable.lib;
|
||||
foldl' recursiveUpdate { } (mapAttrsToList (name: system: {
|
||||
"${system.pkgs.stdenv.hostPlatform.system}"."${name}" =
|
||||
system.config.system.build.toplevel;
|
||||
}) (filterAttrs
|
||||
(n: v: (builtins.elem n buildList))
|
||||
self.nixosConfigurations));
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user