hosts/legion: move to new structure
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
28
hosts/legion/hardware/nvidia.nix
Normal file
28
hosts/legion/hardware/nvidia.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{config, ...}: {
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
hardware = {
|
||||
nvidia-container-toolkit.enable = true;
|
||||
nvidia = {
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
open = true;
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = false;
|
||||
dynamicBoost.enable = true;
|
||||
powerManagement = {
|
||||
enable = false;
|
||||
# finegrained = true;
|
||||
};
|
||||
prime = {
|
||||
# sync.enable = true;
|
||||
# reverseSync.enable = true;
|
||||
# allowExternalGpu = true;
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
amdgpuBusId = "PCI:6:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user