@@ -3,6 +3,7 @@
33, supportedSystems ? [ "x86_64-linux" "aarch64-linux" ]
44}:
55
6+with import ../pkgs/top-level/release-lib.nix { inherit supportedSystems; };
67with import ../lib;
78
89let
@@ -11,8 +12,6 @@ let
1112 versionSuffix =
1213 (if stableBranch then "." else "pre") + "${toString nixpkgs.revCount}.${nixpkgs.shortRev}";
1314
14− forAllSystems = genAttrs supportedSystems;
15−
1615 importTest = fn: args: system: import fn ({
1716 inherit system;
1817 } // args);
@@ -124,22 +123,13 @@ in rec {
124123 # Build the initial ramdisk so Hydra can keep track of its size over time.
125124 initialRamdisk = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.initialRamdisk);
126125
127− netboot = {
128− x86_64-linux = makeNetboot {
129− system = "x86_64-linux";
130− modules = [
131− ./modules/installer/netboot/netboot-minimal.nix
132− versionModule
133− ];
134− };
135− } // (optionalAttrs (elem "aarch64-linux" supportedSystems) {
136− aarch64-linux = makeNetboot {
137− system = "aarch64-linux";
138− modules = [
139− ./modules/installer/netboot/netboot-minimal.nix
140− versionModule
141− ];
142− };});
126+ netboot = forTheseSystems [ "x86_64-linux" "aarch64-linux" ] (system: makeNetboot {
127+ inherit system;
128+ modules = [
129+ ./modules/installer/netboot/netboot-minimal.nix
130+ versionModule
131+ ];
132+ });
143133
144134 iso_minimal = forAllSystems (system: makeIso {
145135 module = ./modules/installer/cd-dvd/installation-cd-minimal.nix;
@@ -147,7 +137,7 @@ in rec {
147137 inherit system;
148138 });
149139
150− iso_graphical = genAttrs [ "x86_64-linux" ] (system: makeIso {
140+ iso_graphical = forTheseSystems [ "x86_64-linux" ] (system: makeIso {
151141 module = ./modules/installer/cd-dvd/installation-cd-graphical-kde.nix;
152142 type = "graphical";
153143 inherit system;
@@ -155,7 +145,7 @@ in rec {
155145
156146 # A variant with a more recent (but possibly less stable) kernel
157147 # that might support more hardware.
158− iso_minimal_new_kernel = genAttrs [ "x86_64-linux" ] (system: makeIso {
148+ iso_minimal_new_kernel = forTheseSystems [ "x86_64-linux" ] (system: makeIso {
159149 module = ./modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix;
160150 type = "minimal-new-kernel";
161151 inherit system;
@@ -163,7 +153,7 @@ in rec {
163153
164154
165155 # A bootable VirtualBox virtual appliance as an OVA file (i.e. packaged OVF).
166− ova = genAttrs [ "x86_64-linux" ] (system:
156+ ova = forTheseSystems [ "x86_64-linux" ] (system:
167157
168158 with import nixpkgs { inherit system; };
169159