From 5e1cfc3997e074d1dc18bfadd2ef78e78de313d9 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Tue, 1 Oct 2024 19:30:21 +0100 Subject: [PATCH] boot: fix attempt to install memtest86+ on non-x86 hardware --- common/boot.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/boot.nix b/common/boot.nix index 10315dc..eb99def 100644 --- a/common/boot.nix +++ b/common/boot.nix @@ -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; }; }