Make nvidia module load, but not be used by default
This commit is contained in:
parent
c969a91209
commit
865fbeaa73
1 changed files with 19 additions and 20 deletions
|
@ -1,31 +1,30 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
# Configure dual-gpu AMD+Nvidia
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
services.xserver.videoDrivers = ["amdgpu"];
|
services.xserver.videoDrivers = ["amdgpu" "nvidia"];
|
||||||
# services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
# services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
||||||
# hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
# modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
# # Experimental nvidia power management
|
# Experimental nvidia power management
|
||||||
# powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
|
|
||||||
# # Experimentally turn off Nvidia GPU when not in use
|
# Experimentally turn off Nvidia GPU when not in use
|
||||||
# powerManagement.finegrained = true;
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
# open = false; # Open source module is still very much beta
|
open = false; # Open source module is still very much beta
|
||||||
|
|
||||||
# nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
|
|
||||||
# # Configure dual-gpu offloading
|
# Configure dual-gpu offloading
|
||||||
# prime = {
|
prime = {
|
||||||
# amdgpuBusId = "PCI:4:0:0";
|
amdgpuBusId = "PCI:4:0:0";
|
||||||
# nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
|
||||||
# offload = {
|
offload = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# enableOffloadCmd = true;
|
enableOffloadCmd = true;
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue