Nix and NixOS on the DGX Spark
Try DGX Spark playbooks using Nix on DGX OS, or install NixOS on your DGX Spark for the full Nix experience. The repository provides USB images and a NixOS module with settings for DGX Spark systems.
This works on the NVIDIA DGX Spark itself and also on the Asus Ascent GX10.
See my 5 minute lightning talk from Planet Nix for an intro: https://youtu.be/AvK_gi_snJE?si=MPKv3iiuS9B5elIE
Using Nix on DGX OS (Ubuntu)
You can use the dev shells and playbooks in this repo on NVIDIA DGX OS (Ubuntu) without installing NixOS.
Setup
Install Nix using the official installer: sh <( curl -L https://nixos.org/nix/install ) --daemon Alternatively, you can use the Determinate Nix Installer: curl --proto ' =https ' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install Enable flakes and nix-command by adding to /etc/nix/nix.conf : experimental-features = nix-command flakes Enable the graham33 Cachix cache — see Caching below.
Running on Non-NixOS (e.g. DGX OS)
On non-NixOS systems, Nix-built CUDA applications need nix-gl-host to find the host GPU drivers. The playbook devshells handle this automatically — container-based playbooks don't need it, and Nix-native playbooks wrap their commands with nixglhost so no manual intervention is required.
... continue reading