Merge pull request #298956 from ncfavier/nvidia-doc

nixos/nvidia: update manual
This commit is contained in:
Franz Pletz 2024-03-26 12:31:36 +01:00 committed by GitHub
commit 05677341df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View File

@ -146,14 +146,12 @@ default because it's not free software. You can enable it as follows:
services.xserver.videoDrivers = [ "nvidia" ];
```
Or if you have an older card, you may have to use one of the legacy
drivers:
If you have an older card, you may have to use one of the legacy drivers:
```nix
services.xserver.videoDrivers = [ "nvidiaLegacy470" ];
services.xserver.videoDrivers = [ "nvidiaLegacy390" ];
services.xserver.videoDrivers = [ "nvidiaLegacy340" ];
services.xserver.videoDrivers = [ "nvidiaLegacy304" ];
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_340;
```
You may need to reboot after enabling this driver to prevent a clash

View File

@ -303,7 +303,7 @@ in
type = types.listOf types.str;
default = [ "modesetting" "fbdev" ];
example = [
"nvidia" "nvidiaLegacy390" "nvidiaLegacy340" "nvidiaLegacy304"
"nvidia"
"amdgpu-pro"
];
# TODO(@oxij): think how to easily add the rest, like those nvidia things