Change lib.mkDefault to lib.mkOverride 990 for hardware.nvidia.prime.offload.enable
Fix conflict to 2a7130d13a
This commit is contained in:
parent
16b6928ec6
commit
b45bd0353a
|
@ -22,7 +22,6 @@
|
||||||
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
|
||||||
|
|
||||||
hardware.nvidia.prime = {
|
hardware.nvidia.prime = {
|
||||||
offload.enable = lib.mkDefault true;
|
|
||||||
amdgpuBusId = "PCI:5:0:0";
|
amdgpuBusId = "PCI:5:0:0";
|
||||||
nvidiaBusId = "PCI:1:0:1";
|
nvidiaBusId = "PCI:1:0:1";
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,7 +16,7 @@ in {
|
||||||
environment.systemPackages = [ nvidia-offload ];
|
environment.systemPackages = [ nvidia-offload ];
|
||||||
|
|
||||||
hardware.nvidia.prime = {
|
hardware.nvidia.prime = {
|
||||||
offload.enable = lib.mkDefault true;
|
offload.enable = lib.mkOverride 990 true;
|
||||||
# Hardware should specify the bus ID for intel/nvidia devices
|
# Hardware should specify the bus ID for intel/nvidia devices
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue