flakes/hosts/winter/kernel.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }: {
2021-06-02 15:31:09 +07:00
powerManagement.cpuFreqGovernor = "ondemand";
2021-05-11 14:32:58 +07:00
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
2021-05-15 08:35:19 +07:00
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
2021-05-11 14:32:58 +07:00
};
2021-06-02 15:31:09 +07:00
blacklistedKernelModules = ["uvcvideo"];
2021-05-11 22:31:26 +07:00
initrd = {
includeDefaultModules = false;
kernelModules = [ "i915" ];
};
2021-05-11 19:31:24 +07:00
kernel.sysctl = {
2021-06-04 13:00:29 +07:00
"kernel.core_pattern" = "|/bin/false";
2021-05-11 19:31:24 +07:00
"kernel.sysrq" = 1;
};
2021-05-11 14:32:58 +07:00
kernelParams = [
"amdgpu.gpu_recovery=1"
"amdgpu.si_support=1"
"radeon.si_support=0"
"intel_pstate=passive"
2021-05-15 10:45:17 +07:00
"msr.allow_writes=on"
2021-05-11 14:32:58 +07:00
];
2021-06-28 08:48:08 +07:00
kernelPackages = pkgs.linuxPackages_tkg {
debug = false;
scheduler = "cacule";
timerFreq = 2000;
numa = false;
tickless = 1;
localVersion = "Lava";
};
kernelPatches = [{
name = "si-clocking";
patch = ../../packages/linux-lava/si-manual-clocking.patch;
}];
#kernelPackages = pkgs.lib.mkForce (pkgs.linuxPackagesFor pkgs.linux-lava);
2021-05-11 14:32:58 +07:00
};
2021-05-15 09:05:55 +07:00
zramSwap.enable = true;
2021-05-11 14:32:58 +07:00
}