Hilton Chain
8a56ebb666
services: nvidia: Only invoke commands when NVIDIA driver is in use.
...
* 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-24 20:06:48 -04:00
Hilton Chain
97925d2091
services: nvidia: No longer unload ‘nvidia_uvm’ module on powering off.
...
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-24 20:06:47 -04:00
Hilton Chain
e4e34b7da4
services: nvidia: Create extra device nodes on boot.
...
* 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-24 20:06:46 -04:00
Hilton Chain
e3896f51d2
services: nvidia: Adjust configuration options.
...
* 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>
2024-04-24 20:06:44 -04:00
Jonathan Brielmaier
62a5df4222
*.scm: Use SPDX license identifiers.
...
Fixes https://gitlab.com/nonguix/nonguix/-/issues/224
* *.scm: Use SPDX license identifier and remove obsolete license
statement.
2022-12-19 17:17:39 +01:00
Hilton Chain
6874c66ddc
nongnu: Add nvidia-service-type.
...
* 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>
2022-12-18 14:10:33 +01:00