Skip to content

Commit

Permalink
fix: add workaround for nvidia kernel module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timon-schelling committed Oct 15, 2024
1 parent 4e324bb commit 6da1bd7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/system/hardware/gpu/nvidia/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ in
};
config = lib.mkIf cfg.enable {
services.xserver.videoDrivers = [ "nvidia" ];
boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" "nvidia_drm.fbdev=1" ];
boot.kernelParams = [
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
"nvidia_drm.fbdev=1"

# TODO: remove after https://github.com/NVIDIA/open-gpu-kernel-modules/pull/692
# and similar are merged and build in nixpkgs-unstable.
# WARNING: this disables tty output and thus hides boot logs.
"initcall_blacklist=simpledrm_platform_driver_init"
];
hardware.nvidia = {
modesetting.enable = true;
powerManagement = {
Expand Down

0 comments on commit 6da1bd7

Please sign in to comment.