summaryrefslogtreecommitdiffstats
path: root/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-05-20 21:42:40 -0500
committerGitHub <noreply@github.com>2019-05-20 21:42:40 -0500
commit022d8ab861cea9508f407ffe906c713b2b1ee529 (patch)
tree29544b4e30fd2496cd37dd3b33d3407818401737 /nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
parentafd8f69d945e26e499a894dc10fe44a3c4d0a42c (diff)
parentd88d675051db1ac390b4064a00cb2cdfaa78a6af (diff)
Merge pull request #61036 from cdepillabout/nixos-memtest-loader
nixos/systemd-boot: add support for memtest86 EFI app
Diffstat (limited to 'nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix')
-rw-r--r--nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
index 03a5fece82ee..ad464a456bcd 100644
--- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
+++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
@@ -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 {