transformations: nvidia: Apply ‘replace-mesa’ to system packages and services.

* nonguix/transformations.scm (nonguix-transformation-nvidia) [packages]
[services]: Apply ‘replace-mesa’.
This commit is contained in:
Hilton Chain 2025-11-24 16:11:06 +08:00
parent 0a9374f1f4
commit a6376bff79
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -138,9 +138,13 @@ TODO: Xorg configuration."
(remove
(cut string-prefix? "nvidia_drm.modeset=" <>)
(operating-system-user-kernel-arguments os)))))
(packages
(replace-mesa (operating-system-packages os) #:driver driver))
(services
`(,(or (assoc-ref %presets driver)
(leave
(G_ "no NVIDIA service configuration available for '~a'~%")
(package-name driver)))
,@(operating-system-user-services os))))))
(replace-mesa
`(,(or (assoc-ref %presets driver)
(leave
(G_ "no NVIDIA service configuration available for '~a'~%")
(package-name driver)))
,@(operating-system-user-services os))
#:driver driver)))))