mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-20 08:39:45 +01:00
common/nvidia disable: Remove lib.mkDefault
This commit is contained in:
parent
5426a95071
commit
1b3c128388
1 changed files with 4 additions and 4 deletions
|
@ -1,15 +1,15 @@
|
||||||
{ lib, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.
|
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.
|
||||||
|
|
||||||
##### disable nvidia, very nice battery life.
|
##### disable nvidia, very nice battery life.
|
||||||
boot.extraModprobeConfig = lib.mkDefault ''
|
boot.extraModprobeConfig = ''
|
||||||
blacklist nouveau
|
blacklist nouveau
|
||||||
options nouveau modeset=0
|
options nouveau modeset=0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.udev.extraRules = lib.mkDefault ''
|
services.udev.extraRules = ''
|
||||||
# Remove NVIDIA USB xHCI Host Controller devices, if present
|
# 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"
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||||
|
|
||||||
|
@ -22,5 +22,5 @@
|
||||||
# Remove NVIDIA VGA/3D controller devices
|
# 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"
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||||
'';
|
'';
|
||||||
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
|
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue