diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index c18d5431bd8a..042fd63cd254 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -472,7 +472,7 @@ in type = types.attrsOf types.path; default = { }; example = literalExpression '' - { "memtest.bin" = "''${pkgs.memtest86plus}/memtest.bin"; } + { "memtest.bin" = pkgs.memtest86plus.efi; } ''; description = '' A set of files to be copied to {file}`/boot`. diff --git a/nixos/modules/system/boot/loader/grub/memtest.nix b/nixos/modules/system/boot/loader/grub/memtest.nix index b762a7b6ce46..fb3db9ee31cb 100644 --- a/nixos/modules/system/boot/loader/grub/memtest.nix +++ b/nixos/modules/system/boot/loader/grub/memtest.nix @@ -69,6 +69,6 @@ in linux @bootRoot@/memtest.bin ${toString cfg.params} } ''; - boot.loader.grub.extraFiles."memtest.bin" = "${memtest86}/memtest.bin"; + boot.loader.grub.extraFiles."memtest.bin" = memtest86.efi; }; }