refactor: move host-specific modules to hosts/

This commit is contained in:
LavaDesu 2021-08-21 17:50:30 +07:00
parent d859e671f9
commit de6d9a42b2
Signed by: cilly
GPG key ID: 6500251E087653C9
5 changed files with 6 additions and 5 deletions

22
hosts/winter/kernel.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, pkgs, ... }: {
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
};
initrd.kernelModules = [ "i915" ];
kernelParams = [
"amdgpu.gpu_recovery=1"
"amdgpu.si_support=1"
"radeon.si_support=0"
"intel_pstate=passive"
"msr.allow_writes=on"
];
kernelPackages = pkgs.lib.mkForce (pkgs.linuxPackagesFor pkgs.linux-lava);
};
}