flake: add a check-host-configs target to ensure all hosts are buildable
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -333,6 +333,19 @@
|
|||||||
-I ../../
|
-I ../../
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
check-host-configs = {
|
||||||
|
type = "app";
|
||||||
|
program = builtins.toString (pkgs.writeShellScript
|
||||||
|
"check-host-configs"
|
||||||
|
(builtins.concatStringsSep "\n" (builtins.map
|
||||||
|
(host: "nix build '.#nixosConfigurations.${host}.config.system.build.toplevel' --out-link ./result-${host} -j1 $@ &")
|
||||||
|
[ "desko" "lappy" "servo" "moby" "rescue" ]
|
||||||
|
# not part of the `map`. wait for all builds to complete
|
||||||
|
++ [ "wait" ]
|
||||||
|
))
|
||||||
|
);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
templates = {
|
templates = {
|
||||||
|
Reference in New Issue
Block a user