flakes/hosts/hyacinth/kernel.nix

21 lines
527 B
Nix
Raw Normal View History

2023-01-28 00:12:28 +07:00
{ config, lib, pkgs, ... }: {
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
initrd.availableKernelModules = [ "xhci_pci" "nvme" ];
initrd.kernelModules = [ "amdgpu" ];
2023-01-28 00:12:28 +07:00
kernelParams = [
"amdgpu.gpu_recovery=1"
"intel_pstate=passive"
"split_lock_detect=off"
2023-01-28 00:12:28 +07:00
];
kernelPackages = lib.mkForce (pkgs.linuxPackagesFor pkgs.me.linux-lava);
};
hardware.amdgpu.overdrive = {
enable = true;
ppfeaturemask = "0xffffffff";
};
2023-01-28 00:12:28 +07:00
}