<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github---graham33-nixos-dgx-spark-use-nix-and-nixos-on-your-dgx-spark--gmcg38gb4" -->

---
title: GitHub - graham33/nixos-dgx-spark: Use Nix and NixOS on...
description: A GitHub repository providing Nix and NixOS support for the NVIDIA DGX Spark (and Asus Ascent GX10). It offers USB boot images, a NixOS hardware module with...
canonical: https://daily.dev/posts/github---graham33-nixos-dgx-spark-use-nix-and-nixos-on-your-dgx-spark--gmcg38gb4
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - graham33/nixos-dgx-spark: Use Nix and NixOS on your DGX Spark! | daily.dev
og:description: A GitHub repository providing Nix and NixOS support for the NVIDIA DGX Spark (and Asus Ascent GX10). It offers USB boot images, a NixOS hardware module with...
og:url: https://daily.dev/posts/github---graham33-nixos-dgx-spark-use-nix-and-nixos-on-your-dgx-spark--gmcg38gb4
og:image: https://api.daily.dev/og/posts/gMCG38Gb4.png
og:image:alt: GitHub - graham33/nixos-dgx-spark: Use Nix and NixOS on your DGX Spark!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - graham33/nixos-dgx-spark: Use Nix and NixOS on your DGX Spark!

**[Hacker News](https://daily.dev/sources/hn)** · 8 min read · 0 upvotes · 0 comments

## Summary

A GitHub repository providing Nix and NixOS support for the NVIDIA DGX Spark (and Asus Ascent GX10). It offers USB boot images, a NixOS hardware module with NVIDIA kernel support, and devshells for running NVIDIA DGX Spark AI playbooks (vLLM, PyTorch, TRT-LLM, ComfyUI, etc.) both on DGX OS (Ubuntu) and full NixOS. Key features include automated CUDA binary caching via Flox, nix-gl-host integration for GPU driver access on non-NixOS systems, kernel config generation from NVIDIA Debian annotations, firmware update support via fwupd, and experimental remote installation via nixos-anywhere.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/graham33/nixos-dgx-spark>

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 51 comments across hackernews (as of 2026-08-03).

**TL;DR:** The community is enthusiastically positive about using NixOS/Nix with LLMs (especially Claude) for managing GPU/AI hardware like the DGX Spark, with many sharing personal success stories of AI-assisted Nix configuration dramatically reducing setup time and complexity.

**Sentiment:** 80% positive · 15% mixed · 5% skeptical

**The case for**

- LLMs and Nix pair exceptionally well because Nix allows side-effect-free self-verification, making it ideal for AI-driven iteration.
- NixOS + LLMs dramatically reduce setup time for complex systems (e.g., homelab servers set up in hours instead of months).
- Having the entire system defined in a git repo makes it a perfect fit for agent harnesses and preserves system understanding across LLM context resets.
- Tools like 'comma' let Claude directly use tools not yet installed, further enhancing the workflow.
- LLMs significantly lower Nix's steep learning curve, shifting the cost-benefit trade-off in Nix's favor.

**The pushback**

- Cross-compilation on Apple Silicon targeting x86-64 Linux can be annoying.
- CUDA-enabled packages require using a binary cache (e.g., flox) or compiling from source, and debugging nix cache issues is surprisingly difficult.
- Nix/NixOS still has a steep initial learning curve even with LLM assistance, partly due to poor documentation and the experimental status of flakes.
- Suspend-to-RAM issues with Nvidia drivers remain unresolved for some users.

**By community**

- hackernews (positive): Commenters are broadly enthusiastic about NixOS + LLM synergy for GPU/AI system management, sharing concrete personal wins and practical tips, with only minor technical caveats raised.

**Hottest debate:** Whether Nix's learning curve and documentation gaps are sufficiently offset by LLM assistance to make it practical for newcomers.

**Open questions**

- Does suspend-to-RAM work reliably with the Nvidia driver on NixOS for DGX Spark setups?
- What is the best approach for cross-compilation from Apple Silicon to x86-64 Linux in Nix?
- When will flakes be officially stabilized and properly documented in NixOS?

**Highlights**

> Absolutely. Running NixOS is a wonderful experience for this reason. NixOS + LLMs make it a breeze to make changes to your system, install and configure new software, and debug issues. Having every aspect of your system defined in a git repo is the perfect fit for agent harnesses. I'll admit, even with LLMs to help, the Nix language and NixOS did have a rather steep learning curve, because it's quite different from anything I'd experienced before. But after getting the hang of it, I can't imagine going back to a "normal" OS and I'm very happy I put in the time to get over the initial friction.
> — [HellsMaddy on hackernews · 2 comments](https://news.ycombinator.com/item?id=49148024)

> Seconded. I always have a workspace on my NixOs where I can query an LLM to fix anything I don't like about my OS. 9 out 10 times it gets it right on the first shot and my OS is at that point slightly better for the rest of eternity (unless I stop running NixOs, which I don't see happening any time soon). About 2 years of these incremental changes, and some investments on my own part about what tools I really like, has made my OS an absolute joy and breeze to work with. Nothing compares. It's like having a version of Omarchy, not build by some other dude to fit their world view, but for yourself that co-evolves with your own preferences and tools.
> — [lobofta on hackernews](https://news.ycombinator.com/item?id=49152528)

> I set up my homelab server running NixOS entirely using Claude and what would have likely taken me months (if not years) doing it the old fashioned way, got reduced to a few hours of back and forth iteration.
> — [sohrob on hackernews](https://news.ycombinator.com/item?id=49149159)

> And to add to that, LLMs start with fresh context on each conversation, so they don't have the understanding of your system that human employees do. Nix lets you naturally encode that understanding in code (and in comments), making sure it never drifts from what the state of the system really is. I never saw much point in Nix, but if you put it like that... now I want to try.
> — [miki123211 on hackernews · 1 comments](https://news.ycombinator.com/item?id=49149097)

> Nix (& NixOS) are very much in the same "as code" as Terraform. -- You put in extra effort now, to save effort later. This isn't traditionally 'practical'. It's quicker to just install the package, compared to writing a declaration that says to make the package available. (And for ops, Docker images won out in terms of practicality). Nix also quite a steep learning curve.. I expect a beginner just wants to learn how to write a package in Nix, and not learn about 'derivations', 'instantiation', etc. Interesting to see LLM coding agents adjust that trade-off: significantly reducing the cost to "write something in Nix", so the benefits become much cheaper.
> — [rgoulter on hackernews · 1 comments](https://news.ycombinator.com/item?id=49150175)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=49146267) · 62 points · 51 comments

## Similar posts on daily.dev

- [DGX Spark as a daily driver](https://daily.dev/posts/dgx-spark-as-a-daily-driver-garbwkxc7) · Hacker News · 1 upvotes · 0 comments
- [NVIDIA DGX Spark: The developer’s personal AI supercomputer built on an Ubuntu base](https://daily.dev/posts/nvidia-dgx-spark-the-developer-s-personal-ai-supercomputer-built-on-an-ubuntu-base-udnb1yett) · Ubuntu · 2 upvotes · 0 comments
- [New Software and Model Optimizations Supercharge NVIDIA DGX Spark](https://daily.dev/posts/new-software-and-model-optimizations-supercharge-nvidia-dgx-spark-itmv12ez9) · NVIDIA Developer · 2 upvotes · 0 comments
- [NVIDIA DGX Spark and DGX Station Power the Latest Open-Source and Frontier Models From the Desktop](https://daily.dev/posts/nvidia-dgx-spark-and-dgx-station-power-the-latest-open-source-and-frontier-models-from-the-desktop-bxoqeh8ep) · NVIDIA · 1 upvotes · 0 comments
- [DGX Spark Nvidia's desktop supercomputer: first look](https://daily.dev/posts/dgx-spark-nvidia-s-desktop-supercomputer-first-look-ulgoxzbdw) · The Register · 0 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux), [#nvidia](https://daily.dev/tags/nvidia), [#cuda](https://daily.dev/tags/cuda), [#nixos](https://daily.dev/tags/nixos)

[View this post on daily.dev](https://daily.dev/posts/github---graham33-nixos-dgx-spark-use-nix-and-nixos-on-your-dgx-spark--gmcg38gb4)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub - graham33/nixos-dgx-spark: Use Nix and NixOS on your DGX Spark!","url":"https://daily.dev/posts/github---graham33-nixos-dgx-spark-use-nix-and-nixos-on-your-dgx-spark--gmcg38gb4","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github---graham33-nixos-dgx-spark-use-nix-and-nixos-on-your-dgx-spark--gmcg38gb4"},"datePublished":"2026-08-02T19:45:59.306Z","dateModified":"2026-08-03T09:38:27.133Z","description":"A GitHub repository providing Nix and NixOS support for the NVIDIA DGX Spark (and Asus Ascent GX10). It offers USB boot images, a NixOS hardware module with...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/105bfc7492a188f2b85eb0ebdf127aa4?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/105bfc7492a188f2b85eb0ebdf127aa4?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github---graham33-nixos-dgx-spark-use-nix-and-nixos-on-your-dgx-spark--gmcg38gb4","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux,nvidia,cuda,nixos","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"GitHub - graham33/nixos-dgx-spark: Use Nix and NixOS on your DGX Spark!"}]}
```

