| 1 | { |
| 2 | boot = { |
| 3 | initrd.availableKernelModules = [ |
| 4 | "ahci" |
| 5 | "xhci_pci" |
| 6 | "nvme" |
| 7 | "usbhid" |
| 8 | ]; |
| 9 | kernelParams = [ |
| 10 | "zfs_arc_max=68719476736.0" # 64 GiB |
| 11 | ]; |
| 12 | supportedFilesystems.zfs = true; |
| 13 | loader = { |
| 14 | efi.canTouchEfiVariables = false; |
| 15 | grub = { |
| 16 | enable = true; |
| 17 | configurationLimit = 10; |
| 18 | efiSupport = true; |
| 19 | efiInstallAsRemovable = true; |
| 20 | mirroredBoots = [ |
| 21 | { |
| 22 | devices = [ "nodev" ]; |
| 23 | path = "/efi/a"; |
| 24 | } |
| 25 | { |
| 26 | devices = [ "nodev" ]; |
| 27 | path = "/efi/b"; |
| 28 | } |
| 29 | ]; |
| 30 | }; |
| 31 | }; |
| 32 | }; |
| 33 | } |