Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

nixos-ai

Skill by olafkfreund

Guides an assistant through running local AI models on NixOS, including Ollama, Open WebUI, llama.cpp and ComfyUI. It also covers connecting local models to coding agents.

  • Score 71
  • 167 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nixos-ai

Built from the published package, never by AI.

git clone --depth 1 https://github.com/olafkfreund/nixarchy /tmp/nixarchy && mkdir -p ~/.claude/skills && cp -r /tmp/nixarchy/pkgs/omarchy/skills/nixos-ai ~/.claude/skills/nixos-ai

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install nixos-ai in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The nixos-ai skill gives an assistant guidance for running local AI models on a NixOS machine. It covers enabling Ollama as a NixOS service, declaring models with loadModels, and choosing the package that matches the GPU, such as ollama-cuda, ollama-rocm, ollama-vulkan or ollama-cpu. It also covers Open WebUI, llama.cpp, ComfyUI, Whisper and piper-tts, plus pointing coding agents at a local OpenAI-compatible endpoint.

The skill assumes the GPU driver stack already works and points to the nixos-gpu skill for that layer. It includes troubleshooting steps using systemctl, journalctl and ollama ps, and it warns about options that no longer exist. It is aimed at NixOS users who want to run models locally, including on a LAN or tailnet, with the risks noted in the text.

Written from the project's SKILL.md and checked against it.

What it can do

  • Ollama service setupEnables services.ollama and selects the GPU build through the package option.
  • Declarative modelsUses loadModels to pull listed models once ollama.service is running.
  • Model storage locationSets modelsDir to move model files to a larger disk.
  • Network accessUses host and openFirewall to reach Ollama from other machines.
  • Open WebUI setupConfigures a browser chat front end for the local models.
  • llama.cpp and other runtimesLists packages for llama.cpp, ComfyUI, Whisper, piper-tts and vector databases.
  • Agent wiringSets OLLAMA_HOST and an OpenAI-compatible base URL for coding agents.
  • TroubleshootingChecks service status, logs, installed models and whether ollama ps shows GPU or CPU use.

What you need

  • NixOS
  • A working NVIDIA or AMD GPU stack, checked with nvidia-smi or rocminfo
  • The nixos-gpu skill for driver and CUDA or ROCm setup

Try asking

  • Set up Ollama on my NixOS machine with the CUDA package and load qwen2.5-coder:7b.
  • My Ollama model is slow. Check whether it is running on the CPU.
  • Point Claude Code at my local Ollama endpoint.

Good to know

  • Ollama has no authentication, so the skill warns against exposing it on untrusted networks.
  • syncModels = true deletes models that are not listed in the configuration.
  • Model weights are not managed by Nix and are not rolled back by nixos-rebuild --rollback.
  • The source notes that a 7B local model is a real downgrade from frontier models for agentic work.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: pkgs/omarchy/skills/nixos-ai/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to nixos-ai

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

nixos-ai: common questions

Why does Ollama run on the CPU on NixOS?

Leaving services.ollama.package unset gives the default CPU build, and it fails silently. Set package to ollama-cuda, ollama-rocm, ollama-vulkan or ollama-cpu.

Does this skill install GPU drivers?

No. The source says the GPU stack must already work, with nvidia-smi or rocminfo returning the card, and it points to the nixos-gpu skill for that layer.

Can other machines use a model running on NixOS?

Yes, by setting host to 0.0.0.0 and openFirewall to true. The source notes that Ollama has no authentication, so it suggests a trusted network or Tailscale.

How do I install nixos-ai?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is nixos-ai free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is nixos-ai safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to nixos-ai?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

nixos-ai Install

Add to stack

Loading.