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; }; }