Merge pull request #61036 from cdepillabout/nixos-memtest-loader

nixos/systemd-boot: add support for memtest86 EFI app
This commit is contained in:
Matthew Bauer
2019-05-20 21:42:40 -05:00
committed by GitHub
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 {
@@ -85,6 +87,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 an unfree program, so
this requires <literal>allowUnfree</literal> to be set to
<literal>true</literal>.
'';
};
};
};
config = mkIf cfg.enable {