add gpu offload
This commit is contained in:
parent
8530ee662b
commit
a598d28959
1 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
{config, lib, pkgs, ...}: {
|
{config, lib, pkgs, ...}: {
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
|
|
@ -9,7 +8,6 @@
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
|
||||||
# Modesetting is required.
|
# Modesetting is required.
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
|
@ -24,13 +22,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.nvidia.prime = {
|
hardware.nvidia.prime = {
|
||||||
|
offload = {
|
||||||
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
# Make sure to use the correct Bus ID values for your system!
|
# Make sure to use the correct Bus ID values for your system!
|
||||||
amdgpuBusId = "PCI:193:0:0";
|
amdgpuBusId = "PCI:193:0:0";
|
||||||
nvidiaBusId = "PCI:100:0:0";
|
nvidiaBusId = "PCI:100:0:0";
|
||||||
};
|
};
|
||||||
|
|
||||||
specialisation = {
|
specialisation = {
|
||||||
gamind.configuration = {
|
gaming.configuration = {
|
||||||
system.nixos.tags = [ "gaming" ];
|
system.nixos.tags = [ "gaming" ];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
prime.offload.enable = lib.mkForce false;
|
prime.offload.enable = lib.mkForce false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue