mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
chore(ai): drop the nvidia-drm.fbdev kernel param the module already sets
hardware.nvidia.modesetting.enable makes nixpkgs' nvidia module add nvidia-drm.modeset=1 and, for drivers >= 545, nvidia-drm.fbdev=1 to moduleParams, which reach modprobe via extraModprobeConfig (evaluated: "options nvidia-drm fbdev=1 modeset=1" on ai with 595.x). Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
1 parent
455c03d1fd
commit
b5c573592b
1 file changed
+2
-6
@@ -15,11 +15,6 @@
|
||||
# for.
|
||||
# ===============================================================================================
|
||||
|
||||
boot.kernelParams = [
|
||||
# Since NVIDIA does not load kernel mode setting by default,
|
||||
# enabling it is required to make Wayland compositors function properly.
|
||||
"nvidia-drm.fbdev=1"
|
||||
];
|
||||
services.xserver.videoDrivers = [ "nvidia" ]; # will install nvidia-vaapi-driver by default
|
||||
|
||||
hardware.nvidia = {
|
||||
@@ -31,7 +26,8 @@
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/nvidia-x11/default.nix
|
||||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||
|
||||
# required by most wayland compositors!
|
||||
# required by most wayland compositors! Also sets nvidia-drm.modeset=1 and,
|
||||
# for drivers >= 545, nvidia-drm.fbdev=1.
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user