Salt formulas for deployment of NVIDIA hardware-accelerated qubes with cuda support
nvidia-driver/:default.jinja- configuration variablesd12.sls- deploy debian-12 qubed13m- states for deployment of debian-13 qubestemplate.sls- prepare hvm-capable minimal templatestandalone.sls- create a standalone based on an hvm-capable template. Will work withdebian-13-xfceas well as withdebian-13-minimal-hvmcreated bytemplate.sls
f41.sls- deploy fedora-41 qubef41-disable-nouveau.sls- disables nouveau (use if nvidia driver isn't prioritized upon installation and reboot)any-minimize-swap.sls- set swappiness to 0any-prime.sls- install prime script into.local/bin/of theuser. Executenvrun myprogramto acceleratemyprogramwith prime.
- Upload
nvidia-driverto your salt environment - Review config in
default.jinja - Use states:
- Directly:
sudo qubesctl --show-output --targets <target_name> state.sls nvidia-driver.f41 saltenv=user - In another formula
{% include 'nvidia-driver/f41.sls' %}
These states also support providing your own variables (as opposed to the ones in default.jinja). If jinja sees appropriately named variable in the context it won't import the same variable from default.jinja.
- optimus prime
- debian 13
- fedora 42
- generalize the installation of drivers (pkg.installed and pkgrepo.managed)
far future:
- rpm repository