diff options
| author | Raito Bezarius <masterancpp@gmail.com> | 2023-06-04 01:46:43 +0200 |
|---|---|---|
| committer | Raito Bezarius <masterancpp@gmail.com> | 2023-06-04 02:03:16 +0200 |
| commit | eea01712af0fd41eae954eedd24f3a63d3a41993 (patch) | |
| tree | 14fb03cd9dd431624b582da65cffe9577a7e80aa | |
| parent | Merge pull request #234814 from winterqt/thelounge-fix-sqlite (diff) | |
| download | nixpkgs-origin/netboot-syslinux-multiplatform.tar.gz | |
netboot: add bootloader-related stuff only if they are available on host platformorigin/netboot-syslinux-multiplatform
| -rw-r--r-- | nixos/modules/installer/netboot/netboot.nix | 5 |
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"; |
