summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/installer/netboot/netboot.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/nixos/modules/installer/netboot/netboot.nix b/nixos/modules/installer/netboot/netboot.nix
index a55c0ab2d655..c9ac73b1a4a6 100644
--- a/nixos/modules/installer/netboot/netboot.nix
+++ b/nixos/modules/installer/netboot/netboot.nix
@@ -38,10 +38,7 @@ with lib;
boot.loader.grub.enable = false;
# !!! Hack - attributes expected by other modules.
- environment.systemPackages = [ pkgs.grub2_efi ]
- ++ (if pkgs.stdenv.hostPlatform.system == "aarch64-linux"
- then []
- else [ pkgs.grub2 pkgs.syslinux ]);
+ environment.systemPackages = lib.filter (lib.meta.availableOn pkgs.stdenv.hostPlatform) [ pkgs.grub2_efi pkgs.grub2 pkgs.syslinux ];
fileSystems."/" = mkImageMediaOverride
{ fsType = "tmpfs";