1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-16 16:09:40 +01:00
nixos-hardware/common/gpu/nvidia-disable.nix
Thiago Kenji Okada b0f31689ac Remove intel drivers from nvidia-disable
Two reasons for this change:
- `intel` drivers are not updated from quite a long time (since ~2019),
  and `modesetting` is the preferred one for Intel iGPUs.
- Technically you may want to disable NVIDIA GPUs on laptops with AMD
  processors too.

We don't want to pin `modesetting` here because it is already the default
since PR: https://github.com/NixOS/nixpkgs/pull/111551.
2021-06-11 17:04:10 -03:00

9 lines
259 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" ];
}