wip - fixes to import and config location
This commit is contained in:
@@ -47,12 +47,12 @@
|
||||
|
||||
|
||||
# In the global configuration, we blacklist the nouveau driver and load the nvidia driver
|
||||
boot.extraModprobeConfig = lib.mkDefault ''
|
||||
boot.extraModprobeConfig = ''
|
||||
blacklist nouveau
|
||||
options nouveau modeset=0
|
||||
'';
|
||||
|
||||
services.udev.extraRules = lib.mkDefault ''
|
||||
services.udev.extraRules = ''
|
||||
# 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
|
||||
@@ -61,10 +61,12 @@
|
||||
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}=="0x030000", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||
# Remove the whole bridge responsible for the VGA/3D controller
|
||||
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{class}=="0x060400", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||
'';
|
||||
|
||||
|
||||
# # Remove the whole bridge responsible for the VGA/3D controller
|
||||
# ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{class}=="0x060400", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||
|
||||
# # somehow the udev rules are not enough to prevent the nouveau driver from loading
|
||||
# # Also unload remove the bus by id manually
|
||||
# # unload 0000:01:00.1 and 0000:01:00.0
|
||||
@@ -86,5 +88,9 @@
|
||||
|
||||
|
||||
|
||||
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
|
||||
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
|
||||
}
|
||||
|
||||
|
||||
# Warning: used to have
|
||||
# lib.mkdDefault
|
||||
|
Reference in New Issue
Block a user