Skip to content

Commit e333e32

Browse files
committed
dotbot.conf.yaml: add shell-nvidia step (nouveau -> nvidia driver)
Install the proprietary/open NVIDIA driver from RPM Fusion on machines with an NVIDIA GPU, replacing nouveau. The step is gated on NVIDIA GPU presence (no-op otherwise), is idempotent, and does not auto-reboot. akmod-nvidia already ships the prebuilt open module on Turing+/Ada, and xorg-x11-drv-nvidia-cuda provides nvidia-smi + CUDA. Document the step in CLAUDE.md and docs/fresh_install.md.
1 parent 9365aa9 commit e333e32

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Only `make install` and `make git-submodule-update` auto-update submodules (and
3535
- `shell-build-tools-deps``make -C tools/build-tools deps-install`
3636
- `shell-dnf-update``dnf update` (Meta-aware: uses `up-no-meta` on Meta machines)
3737
- `shell-dnf` — install Fedora packages
38+
- `shell-nvidia` — install the NVIDIA driver (akmod-nvidia + CUDA) on machines with an NVIDIA GPU; no-op otherwise
3839
- `shell-insync` — install Insync (Google Drive sync)
3940
- `shell-pip` — install Python packages from `scripts/requirements.txt`
4041
- `shell-gnome-extensions` — install GNOME extensions (V-Shell, Tactile, Caffeine, Vitals)

docs/fresh_install.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
```
2727
- Log out and back in (picks up fish shell, GNOME extensions, dock layout)
2828
29+
- NVIDIA (machines with an Nvidia GPU)
30+
- Installed by `make install` (`shell-nvidia`: `akmod-nvidia` + `xorg-x11-drv-nvidia-cuda`); does not auto-reboot
31+
- Reboot to finish the nouveau -> nvidia switch, then verify:
32+
```
33+
nvidia-smi
34+
lspci -nnk -d 10de:: | grep 'driver in use' # -> nvidia
35+
```
36+
2937
- Insync
3038
- Setup ajaysriv@meta.com sync to ~/mdrive
3139
- Setup ajaysriv3@gmail.com sync to ~/gdrive

dotbot.conf.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
- - sudo -v && yes | sudo remove-retired-packages
8787
- "=> shell-dnf: remove-retired-packages"
8888

89+
- shell-nvidia:
90+
- if: 'lspci -d 10de:: -nn | grep -Eiq "VGA compatible|3D controller"'
91+
shell:
92+
- - sudo -v && sudo dnf -y config-manager setopt rpmfusion-nonfree-nvidia-driver.enabled=1 && sudo dnf -y install akmod-nvidia xorg-x11-drv-nvidia-cuda
93+
- "=> shell-nvidia: install NVIDIA driver (reboot afterwards)"
94+
8995
- shell-insync:
9096
- shell:
9197
- - sudo -v && sudo rpm --import https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key

0 commit comments

Comments
 (0)