Skip to content

Commit 6da1bd7

Browse files
fix: add workaround for nvidia kernel module
Kernel parameter `initcall_blacklist=simpledrm_platform_driver_init` is used to prevent the driver from hitting the renamed (and thus not linked) codepath. Remove after NVIDIA/open-gpu-kernel-modules#692 and similar are merged and build in nixpkgs-unstable. This also disables tty output and thus hides boot logs.
1 parent 4e324bb commit 6da1bd7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/system/hardware/gpu/nvidia/system.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ in
1010
};
1111
config = lib.mkIf cfg.enable {
1212
services.xserver.videoDrivers = [ "nvidia" ];
13-
boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" "nvidia_drm.fbdev=1" ];
13+
boot.kernelParams = [
14+
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
15+
"nvidia_drm.fbdev=1"
16+
17+
# TODO: remove after https://github.com/NVIDIA/open-gpu-kernel-modules/pull/692
18+
# and similar are merged and build in nixpkgs-unstable.
19+
# WARNING: this disables tty output and thus hides boot logs.
20+
"initcall_blacklist=simpledrm_platform_driver_init"
21+
];
1422
hardware.nvidia = {
1523
modesetting.enable = true;
1624
powerManagement = {

0 commit comments

Comments
 (0)