Show HN: NixOS-DGX-Spark โ Nix and NixOS on the DGX Spark
----
- 4 minutes ago | 4 points | 0 comments
- URL: https://github.com/graham33/nixos-dgx-spark
- Discussions: https://news.ycombinator.com/item?id=49146267
- Summary: This repository, **nixos-dgx-spark** by graham33, enables using Nix and NixOS on NVIDIA DGX Spark systems (and Asus Ascent GX10). It offers two main approaches:
1. **Using Nix on DGX OS (Ubuntu)** โ Install Nix, enable flakes, and use provided dev shells/playbooks without replacing the OS. CUDA apps use `nix-gl-host` for GPU driver access on non-NixOS systems.
2. **Installing NixOS on DGX Spark** โ Provides a USB boot image (via `nix build .#usb-image`) with two kernel options: NVIDIA's specialized kernel (default) or standard NixOS 6.17 kernel. A configurable NixOS module (`hardware.dgx-spark`) enables GPU support, DGX Dashboard at localhost:11000, and fwupd for firmware updates. Note: firmware must be updated from DGX OS before installing NixOS.
The repo also includes **playbooks** (ComfyUI, vLLM, PyTorch, TRT-LLM, NCCL, multi-agent chatbot, etc.) tested on both NixOS and DGX OS, using full Nix or container-based setups. A quick-start template (`nix flake init -t github:graham33/nixos-dgx-spark#dgx-spark`) simplifies initial setup.
Caching via Flox (CUDA binaries) and Cachix (project packages) speeds builds. Experimental `nixos-anywhere` support allows remote headless installation. Licensed under MIT.