refactor: move host-specific modules to hosts/
This commit is contained in:
parent
d859e671f9
commit
de6d9a42b2
5 changed files with 6 additions and 5 deletions
22
hosts/winter/kernel.nix
Normal file
22
hosts/winter/kernel.nix
Normal 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);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue