mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 16:57:14 +08:00
Add nvidia-disable profile
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.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
imports = [
|
||||
../../../common/cpu/intel
|
||||
../../../common/pc/laptop
|
||||
# To just use Intel integrated graphics with Intel's open source driver
|
||||
# ../../../common/gpu/nvidia-disable
|
||||
];
|
||||
|
||||
# TODO: boot loader
|
||||
@@ -12,7 +14,4 @@
|
||||
|
||||
# This will save you money and possibly your life!
|
||||
services.thermald.enable = true;
|
||||
|
||||
# To just use Intel integrated graphics with Intel's open source driver
|
||||
# hardware.nvidiaOptimus.disable = true;
|
||||
}
|
||||
|
||||
@@ -4,15 +4,7 @@
|
||||
imports = [
|
||||
../../../../common/cpu/intel
|
||||
../../../../common/pc/laptop
|
||||
../../../../common/gpu/nvidia-disable.nix
|
||||
../xps-common.nix
|
||||
];
|
||||
|
||||
|
||||
# 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" ];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user