add gpu offload
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{config, lib, pkgs, ...}: {
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
@@ -9,7 +8,6 @@
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia = {
|
||||
|
||||
# Modesetting is required.
|
||||
modesetting.enable = true;
|
||||
|
||||
@@ -24,13 +22,17 @@
|
||||
};
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
# Make sure to use the correct Bus ID values for your system!
|
||||
amdgpuBusId = "PCI:193:0:0";
|
||||
nvidiaBusId = "PCI:100:0:0";
|
||||
};
|
||||
|
||||
specialisation = {
|
||||
gamind.configuration = {
|
||||
gaming.configuration = {
|
||||
system.nixos.tags = [ "gaming" ];
|
||||
hardware.nvidia = {
|
||||
prime.offload.enable = lib.mkForce false;
|
||||
|
||||
Reference in New Issue
Block a user