1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-29 13:09:45 +01:00
nixos-hardware/common/gpu/nvidia-disable.nix

9 lines
276 B
Nix

{ lib, pkgs, ... }:
{
# 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" ];
}