dotfiles/nixos/systems/blowhole/hardware.nix
magic_rb 89afaf89c1
Disable a thing in ZFS which can cause file corruption
Signed-off-by: magic_rb <magic_rb@redalder.org>
2023-11-25 17:59:27 +01:00

31 lines
641 B
Nix

{ config, pkgs, ... }:
{
boot = {
supportedFilesystems = ["zfs"];
kernelParams = [
"ipmi_watchdog.timeout=300"
"zfs.zfs_dmu_offset_next_sync=0"
];
initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"nvme"
];
initrd.kernelModules = [
"ipmi_watchdog"
];
blacklistedKernelModules = [
"iTCO_wdt"
];
zfs.enableUnstable = true;
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
};
environment.systemPackages = [ pkgs.ipmitool ];
hardware.enableRedistributableFirmware = true;
}