boot: fix attempt to install memtest86+ on non-x86 hardware

This commit is contained in:
Katherina Walshe-Grey 2024-10-01 19:30:21 +01:00
parent cd84be16be
commit 5e1cfc3997

View file

@ -1,10 +1,13 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
in
{
boot.loader = {
systemd-boot.enable = true;
systemd-boot.editor = false;
systemd-boot.memtest86.enable = true;
systemd-boot.memtest86.enable = mkIf config.nixpkgs.hostPlatform.isx86 true;
efi.canTouchEfiVariables = true;
};
}