| 8 Jun 2021 |
Natan Lao | (Specifically, hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_390;) | 23:03:56 |
jonringer | what card do you have? | 23:19:17 |
Natan Lao | i have a wheezing GTX 560 Ti | 23:19:37 |
Natan Lao | i'm just about to open an issue, this is the relevant lspci output:
$ nix-shell -p pciutils --run "lspci -k | grep -EA3 'VGA|3D|Display'"
07:00.0 VGA compatible controller: NVIDIA Corporation GF114 [GeForce GTX 560 Ti] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd Device 3515
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
| 23:20:03 |
jonringer | you probably want. services.xserver.videoDriver = [ "nvidiaLegacy390" ]; | 23:22:21 |
Natan Lao | Yeah, that used to work but is now deprecated on 21.05 | 23:22:35 |
jonringer | deprecated with error, or deprecated with warning? | 23:22:51 |
Natan Lao | Deprecated with error | 23:22:57 |
Natan Lao | Actually, I tried videoDrivers and not videoDriver, let me double check | 23:23:11 |
hexa | what error? | 23:23:24 |
jonringer | oh, I mistyped | 23:23:23 |
jonringer | * you probably want. services.xserver.videoDrivers = [ "nvidiaLegacy390" ]; | 23:23:30 |
Natan Lao | ah yeah, no dice unfortunately | 23:23:54 |
Natan Lao | error: Selecting an nvidia driver has been modified for NixOS 19.03. The version is now set using hardware.nvidia.package. | 23:23:56 |
Natan Lao | * error: Selecting an nvidia driver has been modified for NixOS 19.03. The version is now set using `hardware.nvidia.package`. | 23:24:01 |
hexa | and setting that doesn't work? | 23:24:22 |
Natan Lao | unfortunately not; i do get the nouveau drivers but not the unfree drivers | 23:24:43 |
hexa | hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy390; | 23:25:11 |
Natan Lao | I have that line exactly except s/legacy390/legacy_390 | 23:25:40 |
jonringer | I think you also need services.xserver.videoDrivers = [ "nvidiaLegacy390" ]; | 23:25:56 |
ahdyt | I use offloading for legacy390 vga and works great | 23:26:01 |
jonringer | otherwise you would get the default list, which has the nouveau | 23:26:09 |
ahdyt | In reply to @jonringer:matrix.org I think you also need services.xserver.videoDrivers = [ "nvidiaLegacy390" ]; No | 23:26:13 |
jonringer | * I think you also need services.xserver.videoDrivers = [ "nvidia" ]; | 23:26:33 |
ahdyt | If you set nvidialegacy390 the compiler will yell that you have to set it at hardware.nvidia.packafe | 23:26:42 |
jonringer | sorry, I mean to just have "nvidia" | 23:26:42 |
ahdyt | * If you set nvidialegacy390 the compiler will yell that you have to set it at hardware.nvidia.packGe | 23:26:49 |
ahdyt | Yeah that's right | 23:26:53 |
ahdyt | * If you set nvidialegacy390 the compiler will yell that you have to set it at hardware.nvidia.package | 23:26:58 |
jonringer | * sorry, I meant to just have "nvidia" | 23:27:04 |