summaryrefslogtreecommitdiff
path: root/nongnu/services/nvidia.scm
AgeCommit message (Collapse)Author
2024-04-24services: nvidia: Only invoke commands when NVIDIA driver is in use.Hilton Chain
* nongnu/services/nvidia.scm (nvidia-service-type): Don't extend kernel-module-loader-service-type, move this part to… (nvidia-shepherd-service)[start]: …here. Check driver and command availablity. [stop]: Likewise. [modules]: Add (guix build utils) for ‘invoke/quiet’. Add (rnrs io ports) for ‘get-line’. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24services: nvidia: No longer unload ‘nvidia_uvm’ module on powering off.Hilton Chain
Shepherd now handles kernel processes properly, no longer need to unload the module here. * nongnu/services/nvidia.scm (nvidia-shepherd-service)[requirement]: Remove 'user-processes. [one-shot?]: Set to #t. [stop]: Remove field. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24services: nvidia: Create extra device nodes on boot.Hilton Chain
* nongnu/services/nvidia.scm (nvidia-shepherd-service) [requirement]: Add udev. [start]: Create extra device nodes via ‘nvidia-smi’. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24services: nvidia: Adjust configuration options.Hilton Chain
* nongnu/services/nvidia.scm (nvidia-configuration): [nvidia-driver]: Rename to ‘driver’. Default to nvda. Accept a file-like object. [nvidia-firmware]: Rename to ‘firmware’. Accept a file-like object. [nvidia-module]: Rename to ‘module’. Accept a file-like object. [modules]: Remove option. (nvidia-shepherd-service): Correct kernel module name. [stop]: Don't return #f. (nvidia-service-type): Extend profile-service-type with ‘driver’. Adjust accordingly. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2022-12-19*.scm: Use SPDX license identifiers.Jonathan Brielmaier
Fixes https://gitlab.com/nonguix/nonguix/-/issues/224 * *.scm: Use SPDX license identifier and remove obsolete license statement.
2022-12-18nongnu: Add nvidia-service-type.Hilton Chain
* nongnu/services/nvidia.scm: New file. (<nvidia-configuration>): New data type. (nvidia-shepherd-service,nvidia-service-type): New variables. * nongnu/packages/nvidia.scm (nvidia-driver)[description]: Adjust accordingly. Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>