Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Created January 24, 2020 16:55
Show Gist options
  • Save adrianparvino/7498ef94546971ee5faf5d05ae044438 to your computer and use it in GitHub Desktop.
Save adrianparvino/7498ef94546971ee5faf5d05ae044438 to your computer and use it in GitHub Desktop.
nesting.clone = [{
hardware.nvidiaOptimus.disable = lib.mkForce false;
hardware.nvidia.modesetting.enable = true;
hardware.nvidia.prime = {
sync.enable = true;
nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0";
};
services.xserver = {
videoDrivers = [ "nvidiaBeta" ];
deviceSection = ''
Option "Coolbits" "28"
'';
};
}];
hardware.nvidiaOptimus.disable = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment