1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-19 01:19:42 +01:00
nixos-hardware/common/gpu/nvidia-disable.nix

11 lines
320 B
Nix
Raw Normal View History

{ 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" ];
}