services: nvidia: Use correct nvidia-smi.

* nongnu/services/nvidia.scm (nvidia-shepherd-service)
[nvidia-shepherd-service]: Use let*.

Reported-by: Murilo <murilo@disroot.org>
This commit is contained in:
Hilton Chain 2024-12-14 00:28:22 +08:00
parent 6dce8b9bc7
commit da06a007f8
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -27,8 +27,8 @@
(default nvidia-module))) ; file-like (default nvidia-module))) ; file-like
(define (nvidia-shepherd-service config) (define (nvidia-shepherd-service config)
(let ((nvidia-driver (nvidia-configuration-driver config)) (let* ((nvidia-driver (nvidia-configuration-driver config))
(nvidia-smi (file-append nvidia-driver "/bin/nvidia-smi"))) (nvidia-smi (file-append nvidia-driver "/bin/nvidia-smi")))
(list (shepherd-service (list (shepherd-service
(documentation "Prepare system environment for NVIDIA driver.") (documentation "Prepare system environment for NVIDIA driver.")
(provision '(nvidia)) (provision '(nvidia))