clan-infra/modules/hetzner-ex101.nix
Jörg Thalheim 34468bab06
All checks were successful
build / test (pull_request) Successful in 6s
hetzner-ex101: add boot.swraid.enable option
2023-08-11 17:35:30 +02:00

14 lines
486 B
Nix

{ pkgs, ... }: {
# Enable raid support specifically, this will disable srvos's
# systemd-initrd as well, which currently is not compatible with mdraid.
boot.swraid.enable = true;
systemd.services.mdmonitor.enable = false;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# We are not limited by zfs, so we can use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
powerManagement.cpuFreqGovernor = "powersave";
}