nixos-hardware/common/gpu/nvidia/disable.nix

10 lines
270 B
Nix
Raw Normal View History

2022-12-31 05:52:38 -05:00
{ lib, ... }:
{
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.
##### disable nvidia, very nice battery life.
hardware.nvidiaOptimus.disable = lib.mkDefault true;
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" ];
}