nixos/systemd-boot: add support for memtest86 EFI app

This commit adds support for installing the memtest86 EFI app and adding
a boot entry for it with systemd-boot.
This commit is contained in:
(cdep)illabout
2019-05-06 17:08:55 +09:00
parent 181e971755
commit b12ea62ec9
2 changed files with 42 additions and 0 deletions
@@ -25,6 +25,8 @@ let
inherit (cfg) consoleMode;
inherit (efi) efiSysMountPoint canTouchEfiVariables;
memtest86 = if cfg.memtest86.enable then pkgs.memtest86-efi else "";
};
in {
@@ -86,6 +88,19 @@ in {
</itemizedlist>
'';
};
memtest86 = {
enable = mkOption {
default = false;
type = types.bool;
description = ''
Make MemTest86 available from the systemd-boot menu. MemTest86 is a
program for testing memory. MemTest86 is a non-open-source program, so
this requires <literal>allowUnfree</literal> to be set to
<literal>true</literal>.
'';
};
};
};
config = mkIf cfg.enable {