nvidia
БесплатноБез исполняемых скриптовНе проверенNVIDIA GPU support architecture and update procedures. Use when editing bluefin scripts, or dakota elements.
от projectbluefin★ 34 звезды на GitHubОб этом скилле
NVIDIA GPU Support — Agent Skill
When to Use
- Modifying nvidia build scripts in
bluefin,bluefin-lts, ordakota - Updating NVIDIA driver or container toolkit versions
- Debugging flatpak GPU access or CDI spec generation failures
- Adding new nvidia-related services or presets
When NOT to Use
- Filing issues or making changes in
ublue-os/*— tell the human to report upstream manually - Modifying the closed-source driver path — factory only ships open kernel modules (Turing+)
The three repos and their nvidia stacks
| Repo | Base OS | Driver source | NCT installed | CDI preset |
|---|---|---|---|---|
projectbluefin/common |
shared overlay | — | — | ❌ none |
projectbluefin/bluefin |
Fedora | ublue-os/akmods-nvidia-open OCI |
✅ (build script) | ❌ none in either repo |
projectbluefin/bluefin-lts |
CentOS Stream 10 | ublue-os/akmods-nvidia-open OCI |
✅ (nvidia build overlay) | ✅ system_files_overrides/nvidia/…/80-nvidia-container-toolkit.preset |
projectbluefin/dakota |
GNOME OS (BST) | .run installer, open kmod |
✅ (built from source) | ✅ elements/bluefin-nvidia/nvidia-container-toolkit-preset.bst |
dakota is the reference implementation. When in doubt about the correct approach for
nvidia-related changes, read elements/bluefin-nvidia/ in dakota first.
The suspend quirk lives in shared/
system_files/shared/usr/lib/modprobe.d/zz-nvidia-suspend.conf pins
NVreg_UseKernelSuspendNotifiers=1— without notifiers (or thenvidia-suspend.serviceprocfs handshake), the driver vetoes system PM (nv_pmops_suspend→NV_ERR_NOT_SUPPORTED), systemd-suspend aborts, and the machine wakes seconds after sleep starts (common#803, same failure class as dakota#1118).NVreg_TemporaryFilePath=/var/lib/systemd/sleep— the default/tmpis tmpfs; a failed VRAM save there aborts suspend through the notifier path too. It must not be/var/tmp: with notifiers the save file is opened fromsystemd-sleep(systemd_sleep_t), which Fedora's SELinux policy denies ontmp_t, so VRAM is lost and the GPU crashes on resume (utah#492/#533, fedora-selinux/selinux-policy#3087)./var/lib/systemd/sleepissystemd_sleep_var_lib_t, which the policy already lets that domain manage.usr/lib/tmpfiles.d/nvidia-suspend.confcreates the directory (systemd does not ship it);tests/test_nvidia_suspend.batskeeps the two in step.
Both options are inert on systems without the nvidia module and ignored as
unknown parameters by drivers that predate them. The zz- prefix keeps the
file sorted after the driver packages' nvidia.conf so these assignments win
duplicates. This repo ships no nvidia-only overlay (common#1124), so this quirk
must stay in shared/.
CDI is the architecture — not OCI hooks
Container GPU access uses CDI (Container Device Interface), not the legacy nvidia OCI hook.
How CDI works on bluefin
nvidia-container-toolkit-baseships two binaries:nvidia-ctkandnvidia-cdi-hooknvidia-cdi-refresh.servicerunsnvidia-ctk cdi generateat boot → writes/var/run/cdi/nvidia.yamlnvidia-cdi-refresh.pathwatches/lib/modules/*/modules.depand/usr/bin/nvidia-ctk- The systemd preset (
80-nvidia-container-toolkit.preset) enables both units at first boot - Podman v4.1.0+:
podman run --device nvidia.com/gpu=all --security-opt=label=disable ...
The CDI spec lives at /var/run/cdi/nvidia.yaml — ephemeral tmpfs, regenerated on every boot. Do not bake it into the image.
What NOT to install
Do not install nvidia-container-runtime, libnvidia-container1, libnvidia-container-tools, or nvidia-container-toolkit (full). Use the -base variant only. See references/architecture.md for full detail.
Constraints
- Turing+ only (GTX 16xx, RTX 20xx+) for open kernel modules.
- CDI spec is runtime-only — lives on tmpfs, regenerated on every boot.
- No cross-repo writes to
ublue-os/*— report to a human who will file upstream manually. golang-github-nvidia-container-toolkitexclusion in bluefin is intentional — do not remove it.
Red Flags
- Pointing
NVreg_TemporaryFilePathat/var/tmp,/tmpor any other pathsystemd_sleep_tcannot write — the VRAM save is denied under enforcing SELinux and resume crashes the GPU (utah#533) - Removing
system_files/shared/usr/lib/modprobe.d/zz-nvidia-suspend.confor either of its options — sleep regresses to the common#803 "wakes seconds after suspend" veto on images whose driver package does not pin them - Removing the
80-nvidia-container-toolkit.presetCDI preset - Removing the
golang-github-nvidia-container-toolkitexclusion from the bluefin build script - Installing
nvidia-container-runtimeor the fullnvidia-container-toolkitpackage
Verification
Before closing any nvidia-related PR:
-
zz-nvidia-suspend.confstill carries `NVreg_UseKernelSuspend
Установить nvidia в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nvidia?
NVIDIA GPU support architecture and update procedures. Use when editing bluefin scripts, or dakota elements.
Как установить скилл nvidia?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nvidia запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic