2023-08-08 14:06:25 -04:00
|
|
|
{ ... }:
|
2022-11-12 20:32:01 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.
|
|
|
|
|
|
|
|
##### disable nvidia, very nice battery life.
|
2023-08-08 14:06:25 -04:00
|
|
|
boot.extraModprobeConfig = ''
|
2023-03-04 11:39:37 -05:00
|
|
|
blacklist nouveau
|
|
|
|
options nouveau modeset=0
|
|
|
|
'';
|
|
|
|
|
2023-08-08 14:06:25 -04:00
|
|
|
services.udev.extraRules = ''
|
2023-03-04 11:39:37 -05:00
|
|
|
# Remove NVIDIA USB xHCI Host Controller devices, if present
|
|
|
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{power/control}="auto", ATTR{remove}="1"
|
|
|
|
|
|
|
|
# Remove NVIDIA USB Type-C UCSI devices, if present
|
|
|
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{power/control}="auto", ATTR{remove}="1"
|
|
|
|
|
|
|
|
# Remove NVIDIA Audio devices, if present
|
|
|
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{power/control}="auto", ATTR{remove}="1"
|
|
|
|
|
|
|
|
# Remove NVIDIA VGA/3D controller devices
|
|
|
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
|
|
|
|
'';
|
2023-08-08 14:06:25 -04:00
|
|
|
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
|
2023-06-27 19:55:39 -04:00
|
|
|
}
|