This commit is contained in:
2023-08-26 07:18:27 +03:00
parent 1baec30bc4
commit 1db9253ae6
18 changed files with 255 additions and 126 deletions

View File

@@ -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;