wip zfs
This commit is contained in:
parent
fb310f9e29
commit
71c8c13265
@ -11,7 +11,6 @@
|
||||
enable = true;
|
||||
devNodes = "/dev/disk/by-id/";
|
||||
bootDevices = ["scsi-0QEMU_QEMU_HARDDISK_36151096"];
|
||||
forceNoDev2305 = true;
|
||||
immutable = false;
|
||||
availableKernelModules = ["xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" "sr_mod" "virtio_gpu"];
|
||||
removableEfi = true;
|
||||
|
@ -11,7 +11,6 @@ in {
|
||||
devNodes = "/dev/disk/by-id/";
|
||||
bootDevices = ["nvme-Samsung_SSD_970_EVO_Plus_2TB_S6P1NS0TA01331A"];
|
||||
immutable = false;
|
||||
forceNoDev2305 = true;
|
||||
availableKernelModules = ["usb_storage" "sd_mod" "xhci_pci" "thunderbolt" "nvme" "usbhid"];
|
||||
removableEfi = true;
|
||||
partitionScheme = {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user