mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-27 13:29:43 +01:00
b0f31689ac
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.
9 lines
259 B
Nix
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" ];
|
|
}
|