global(boot): add memtest option
This commit is contained in:
parent
d9c5ad9aa7
commit
8b99375e1c
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,11 @@ in {
|
|||
enable = mkEnableOption "bootloader installation and maintenance" // { default = true; };
|
||||
systemd-boot = mkEnableOption "generation selection via systemd-boot" // { default = !cfg.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
|
||||
|
@ -20,6 +25,7 @@ in {
|
|||
loader.systemd-boot.enable = cfg.systemd-boot;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
tmp.cleanOnBoot = true;
|
||||
kernelParams = optional (cfg.memtest != null) "memtest=${toString cfg.memtest}";
|
||||
};
|
||||
|
||||
# symlink for sbctl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue