furthre config on laptop
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../default.nix
|
||||
../../../system/gpu/nvidia/prime.nix
|
||||
../../../system/gpu/nvidia/turing
|
||||
];
|
||||
|
||||
hardware.graphics.enable = true;
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = true;
|
||||
};
|
||||
hardware.nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
# Bus ID of the Intel GPU.
|
||||
intelBusId = lib.mkDefault "PCI:0:2:0";
|
||||
|
||||
# Bus ID of the NVIDIA GPU.
|
||||
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user