global(boot): add memtest option
This commit is contained in:
parent
c679af9ad9
commit
998eb03ba9
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,11 @@ in {
|
||||||
enable = mkEnableOption "bootloader installation and maintenance" // { default = true; };
|
enable = mkEnableOption "bootloader installation and maintenance" // { default = true; };
|
||||||
systemd-boot = mkEnableOption "generation selection via systemd-boot" // { default = !cfg.lanzaboote; };
|
systemd-boot = mkEnableOption "generation selection via systemd-boot" // { default = !cfg.lanzaboote; };
|
||||||
lanzaboote = mkEnableOption "secure boot maintenance via lanzaboote";
|
lanzaboote = mkEnableOption "secure boot maintenance via lanzaboote";
|
||||||
|
memtest = mkOption {
|
||||||
|
type = with types; nullOr int;
|
||||||
|
default = null;
|
||||||
|
description = "memtest passes to perform on boot";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
|
@ -20,6 +25,7 @@ in {
|
||||||
loader.systemd-boot.enable = cfg.systemd-boot;
|
loader.systemd-boot.enable = cfg.systemd-boot;
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
tmp.cleanOnBoot = true;
|
tmp.cleanOnBoot = true;
|
||||||
|
kernelParams = optional (cfg.memtest != null) "memtest=${toString cfg.memtest}";
|
||||||
};
|
};
|
||||||
|
|
||||||
# symlink for sbctl
|
# symlink for sbctl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue