summary refs log tree commit diff
path: root/nixos/release.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-01-16 18:42:47 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-01-16 18:56:41 +0200
commit4ccf308d665fd2cd60c57d2fe17d5c597570e978 (patch)
treef9fa172d1513e545f852b8c36b5b464f3121eaa8 /nixos/release.nix
parentb3c50ec1e9a3e2a4f356c4eaed46450b73f52dba (diff)
downloadnixpkgs-4ccf308d665fd2cd60c57d2fe17d5c597570e978.tar
nixpkgs-4ccf308d665fd2cd60c57d2fe17d5c597570e978.tar.gz
nixpkgs-4ccf308d665fd2cd60c57d2fe17d5c597570e978.tar.bz2
nixpkgs-4ccf308d665fd2cd60c57d2fe17d5c597570e978.tar.lz
nixpkgs-4ccf308d665fd2cd60c57d2fe17d5c597570e978.tar.xz
nixpkgs-4ccf308d665fd2cd60c57d2fe17d5c597570e978.tar.zst
nixpkgs-4ccf308d665fd2cd60c57d2fe17d5c597570e978.zip
nixos/release.nix: Use forTheseSystems from release-lib
Currently, even if you pass `supportedSystems = [ "aarch64-linux" ]` you
end up with e.g. `nixos.iso_graphical.x86_64-linux` job. Using
forTheseSystems from release-lib avoids that.

This shouldn't affect the usual x86 trunk-combined jobset.
Diffstat (limited to 'nixos/release.nix')
-rw-r--r--nixos/release.nix29
1 files changed, 10 insertions, 19 deletions
diff --git a/nixos/release.nix b/nixos/release.nix
index 9a25b9a1919..39c550b6277 100644
--- a/nixos/release.nix
+++ b/nixos/release.nix
@@ -123,22 +123,13 @@ in rec {
   # Build the initial ramdisk so Hydra can keep track of its size over time.
   initialRamdisk = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.initialRamdisk);
 
-  netboot = {
-    x86_64-linux = makeNetboot {
-      system = "x86_64-linux";
-      modules = [
-        ./modules/installer/netboot/netboot-minimal.nix
-        versionModule
-      ];
-    };
-  } // (optionalAttrs (elem "aarch64-linux" supportedSystems) {
-    aarch64-linux = makeNetboot {
-      system = "aarch64-linux";
-      modules = [
-        ./modules/installer/netboot/netboot-minimal.nix
-        versionModule
-      ];
-    };});
+  netboot = forTheseSystems [ "x86_64-linux" "aarch64-linux" ] (system: makeNetboot {
+    inherit system;
+    modules = [
+      ./modules/installer/netboot/netboot-minimal.nix
+      versionModule
+    ];
+  });
 
   iso_minimal = forAllSystems (system: makeIso {
     module = ./modules/installer/cd-dvd/installation-cd-minimal.nix;
@@ -146,7 +137,7 @@ in rec {
     inherit system;
   });
 
-  iso_graphical = genAttrs [ "x86_64-linux" ] (system: makeIso {
+  iso_graphical = forTheseSystems [ "x86_64-linux" ] (system: makeIso {
     module = ./modules/installer/cd-dvd/installation-cd-graphical-kde.nix;
     type = "graphical";
     inherit system;
@@ -154,7 +145,7 @@ in rec {
 
   # A variant with a more recent (but possibly less stable) kernel
   # that might support more hardware.
-  iso_minimal_new_kernel = genAttrs [ "x86_64-linux" ] (system: makeIso {
+  iso_minimal_new_kernel = forTheseSystems [ "x86_64-linux" ] (system: makeIso {
     module = ./modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix;
     type = "minimal-new-kernel";
     inherit system;
@@ -162,7 +153,7 @@ in rec {
 
 
   # A bootable VirtualBox virtual appliance as an OVA file (i.e. packaged OVF).
-  ova = genAttrs [ "x86_64-linux" ] (system:
+  ova = forTheseSystems [ "x86_64-linux" ] (system:
 
     with import nixpkgs { inherit system; };