Files
nixfiles/hosts
Emma Thorpe d4e7475db9
CI / flake (push) Skipped
CI / flake (pull_request) Successful in 4m12s
fix(macpro31): load the NVIDIA modules and guard the CDI generator
The CDI generator aborted with "failed to initialize NVML: Driver Not
Loaded", taking docker.service with it (requiredBy) and failing the
switch.

Two causes. The nixpkgs NVIDIA module only adds nvidia/nvidia_modeset/
nvidia_drm to boot.kernelModules when services.xserver.enable is set,
which is false on this Wayland-only host, so load them explicitly.
nvidia_uvm stays out: the module's modprobe softdep loads it once the GPU
device exists.

The generator also runs during activation, when a module rebuilt against a
new kernel cannot be loaded until reboot -- a guaranteed failure after
every kernel bump. Guard it with ConditionPathExists on
/proc/driver/nvidia/version so it skips rather than fails; the toolkit's
udev rule restarts it when the device appears, so the specs are generated
on the next boot.
2026-08-17 20:47:33 +01:00
..
2026-08-07 11:35:06 +01:00
2026-07-06 15:27:03 +01:00
2026-07-06 15:27:02 +01:00