diff options
author | Kiskae <Kiskae@users.noreply.github.com> | 2023-03-24 11:37:35 +0100 |
---|---|---|
committer | Kiskae <Kiskae@users.noreply.github.com> | 2023-03-24 11:37:35 +0100 |
commit | c3ce711249cb09e3558468e3d0e33d5870affe65 (patch) | |
tree | 2f67b3cf4ff0ec63fe0c2d8aa3b5e1a38a4d5d92 /nixos/modules/hardware/video/nvidia.nix | |
parent | 91f99f14ff83b3c2ca0c90c29ada3b030127152d (diff) |
nixos/nvidia: re-enable IBT for newer drivers
Diffstat (limited to 'nixos/modules/hardware/video/nvidia.nix')
-rw-r--r-- | nixos/modules/hardware/video/nvidia.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index 434931ccae5a7..79a3ab6baaab2 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -462,8 +462,7 @@ in boot.kernelParams = optional (offloadCfg.enable || cfg.modesetting.enable) "nvidia-drm.modeset=1" ++ optional cfg.powerManagement.enable "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ++ optional cfg.open "nvidia.NVreg_OpenRmEnableUnsupportedGpus=1" - # proprietary driver is not compiled with support for X86_KERNEL_IBT - ++ optional (!cfg.open && config.boot.kernelPackages.kernel.kernelAtLeast "6.2") "ibt=off"; + ++ optional (!cfg.open && config.boot.kernelPackages.kernel.kernelAtLeast "6.2" && lib.versionOlder nvidia_x11.version "530") "ibt=off"; services.udev.extraRules = '' |