2023-06-12 23:25:40 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-06-12 23:25:40 +02:00
|
|
|
boot = {
|
|
|
|
supportedFilesystems = ["zfs"];
|
2023-07-18 11:44:48 +02:00
|
|
|
kernelParams = [
|
|
|
|
"ipmi_watchdog.timeout=300"
|
2023-11-25 17:59:27 +01:00
|
|
|
"zfs.zfs_dmu_offset_next_sync=0"
|
2023-07-18 11:44:48 +02:00
|
|
|
];
|
2023-06-12 23:25:40 +02:00
|
|
|
initrd.availableKernelModules = [
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
"nvme"
|
|
|
|
];
|
2023-07-18 11:44:48 +02:00
|
|
|
initrd.kernelModules = [
|
|
|
|
"ipmi_watchdog"
|
|
|
|
];
|
|
|
|
blacklistedKernelModules = [
|
|
|
|
"iTCO_wdt"
|
|
|
|
];
|
2024-06-02 17:26:00 +02:00
|
|
|
zfs.package = pkgs.zfs_unstable;
|
2023-06-12 23:25:40 +02:00
|
|
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
|
|
};
|
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
environment.systemPackages = [pkgs.ipmitool];
|
2023-07-18 11:44:48 +02:00
|
|
|
|
2023-06-12 23:25:40 +02:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
}
|