fra1-a
This commit is contained in:
@@ -26,6 +26,11 @@ in {
|
||||
description = "Specify boot devices";
|
||||
type = types.nonEmptyListOf types.str;
|
||||
};
|
||||
forceNoDev2305 = mkOption {
|
||||
description = "https://github.com/NixOS/nixpkgs/issues/222491";
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
availableKernelModules = mkOption {
|
||||
type = types.nonEmptyListOf types.str;
|
||||
default = ["uas" "nvme" "ahci"];
|
||||
@@ -130,7 +135,10 @@ in {
|
||||
generationsDir.copyKernels = true;
|
||||
grub = {
|
||||
enable = true;
|
||||
devices = map (diskName: cfg.devNodes + diskName) cfg.bootDevices;
|
||||
devices =
|
||||
if cfg.forceNoDev2305
|
||||
then ["nodev"]
|
||||
else map (diskName: cfg.devNodes + diskName) cfg.bootDevices;
|
||||
efiInstallAsRemovable = cfg.removableEfi;
|
||||
copyKernels = true;
|
||||
efiSupport = true;
|
||||
|
||||
Reference in New Issue
Block a user