mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-18 00:49:41 +01:00
36094450fd
This is already used in XPS 15-9560, but instead of defining it in XPS 15-9560 let's create a separate profile and expose it for those who want to disable their NVIDIA GPU.
10 lines
320 B
Nix
10 lines
320 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
# This runs only Intel and nvidia does not drain power.
|
|
|
|
##### disable nvidia, very nice battery life.
|
|
hardware.nvidiaOptimus.disable = lib.mkDefault true;
|
|
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" ];
|
|
services.xserver.videoDrivers = lib.mkDefault [ "intel" ];
|
|
}
|