Guest User

NVidia on Dell with NixOS

a guest
Jun 13th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # Video Settings & Drivers
  2. services.xserver.dpi = 100;
  3. fonts.fontconfig.dpi = 100;
  4. # 1. does not work
  5. # boot.kernelModules = [ "nvidia_x11" ];
  6. # services.xserver.videoDrivers = [ "nvidia" ];
  7. # boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
  8. # 2. only "intel" works
  9. # services.xserver.videoDrivers = [ "intel" "nvidia" ];
  10. # 3. optimus prime mode ;)
  11. services.xserver.videoDrivers = [ "nvidia" ];
  12. hardware.nvidia.optimus_prime.enable = true;
  13. # Bus ID of the NVIDIA GPU. You can find it using lspci;
  14. # for example if lspci shows the NVIDIA GPU at "01:00.0", set this option to "PCI:1:0:0".
  15. hardware.nvidia.optimus_prime.nvidiaBusId = "PCI:1:0:0";
  16. # Bus ID of the Intel GPU. You can find it using lspci;
  17. # for example if lspci shows the Intel GPU at "00:02.0", set this option to "PCI:0:2:0".
  18. hardware.nvidia.optimus_prime.intelBusId = "PCI:0:2:0";
Advertisement
Add Comment
Please, Sign In to add comment