nixos: use supportedSystems argument instead of hardcoded list for netboot

The default value for the argument is identical to the hardcoded list,
but using the argument allows to build other netboot images easily.
This commit is contained in:
Markus S. Wamser 2021-04-23 18:34:51 +02:00
parent a773d882d1
commit 44a994ff9e

View File

@ -138,7 +138,7 @@ in rec {
# Build the initial ramdisk so Hydra can keep track of its size over time.
initialRamdisk = buildFromConfig ({ ... }: { }) (config: config.system.build.initialRamdisk);
netboot = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system: makeNetboot {
netboot = forMatchingSystems supportedSystems (system: makeNetboot {
module = ./modules/installer/netboot/netboot-minimal.nix;
inherit system;
});