This commit is contained in:
2023-11-28 00:49:49 +02:00
parent fb310f9e29
commit 71c8c13265
3 changed files with 1 additions and 11 deletions

View File

@@ -26,11 +26,6 @@ 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"];
@@ -137,10 +132,7 @@ in {
generationsDir.copyKernels = true;
grub = {
enable = true;
devices =
if cfg.forceNoDev2305
then ["nodev"]
else map (diskName: cfg.devNodes + diskName) cfg.bootDevices;
devices = map (diskName: cfg.devNodes + diskName) cfg.bootDevices;
efiInstallAsRemovable = cfg.removableEfi;
copyKernels = true;
efiSupport = true;