nix
Skill1 starsChanged 3 months agoMITView on GitHub
Nix language, flakes, NixOS, Home Manager, and agent-skills packaging. TRIGGER when: working with .nix files, flake.nix, flake.lock, Nargo.toml (Nix packaging context), NixOS configuration, Home Manager modules, nix-agent MCP tools, agent-skills-nix deployment, or rigup.nix riglets. DO NOT TRIGGER when: only using nix PATH (chezmoi handles that), or working on ZK circuits (use noir skill), or Nix language is incidental to another domain.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- cormacc/dotagentstheir own version, first seen Sep 17, 2026
- Jylhis/skillstheir own version, first seen Aug 5, 2026
- mattstruble/skillstheir own version, first seen Jul 22, 2026
- tcztzy/skillstheir own version, first seen Apr 2, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- mattstruble/skills★ 2same name
- tcztzy/skills★ 2same name
- cormacc/dotagents★ 1same name
- Jylhis/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adversarial-reviewerSkill
- agent-designerSkill
- architectSkill
- autoresearchSkill
- blockscoutSkill
- ci-cd-pipeline-builderSkill
- claude-apiSkill
- codebase-onboardingSkill
- code-reviewSkill
- coingeckoSkill
- database-designerSkill
- dependency-auditorSkill
- design-uxSkill
- digestSkill
- droo-stackSkill
- env-secrets-managerSkill
- ethskillsSkill
- ffmpeg-asmSkill
- focused-fixSkill
- frontend-slop-auditSkill
- git-guardrailsSkill
- git-worktree-managerSkill
- humanizerSkill
- interface-designerSkill
- llm-cost-optimizerSkill
- local-browser-inspectorSkill
- mcp-server-builderSkill
- native-codeSkill
- noirSkill
- observability-designerSkill
- patchbotSkill
- performance-profilerSkill
- playwrightSkill
- polymathSkill
- prd-to-planSkill
- prepperSkill
- property-testingSkill
- qaSkill
- rag-architectSkill
- raxol-paymentsSkill
- raxolSkill
- raxol-symphonySkill
- recallSkill
- refactoring-strategySkill
- regenSkill
- releaseSkill
- security-auditorSkill
- self-improving-agentSkill
- sentinelSkill
- signozSkill
- skill-creatorSkill
- solidity-auditorSkill
- tddSkill
- tech-debt-trackerSkill
- ubiquitous-languageSkill
- watchdogSkill
- web-asset-generatorSkill
- writing-voiceSkill
- The first 60 shown.
The file
Files
nix
Practical patterns for the Nix ecosystem: the language itself, flake architecture, NixOS/Home Manager configuration, package building, and the emerging pattern of packaging AI agent skills as Nix derivations.
What You Get
- Nix language idioms (let/with/inherit, builtins, lazy evaluation)
- Flake architecture (inputs, outputs, lockfiles, overlays)
- NixOS and Home Manager module patterns
- Package builders (mkDerivation, buildGoModule, buildNpmPackage)
- Agent-skills-as-Nix-packages patterns (rigup, nix-agent MCP)
When to use
- Writing or reviewing
.nixfiles (flakes, modules, overlays, packages) - Configuring NixOS or Home Manager
- Building Nix packages (mkDerivation, buildGoModule, buildNpmPackage, etc.)
- Managing Nix profiles and registries
- Packaging agent skills for Nix-based deployment (agent-skills-nix, rigup)
- Using nix-agent MCP tools for NixOS automation
When NOT to use
- Nix PATH setup in chezmoi -- handled by
paths.zsh.tmplandchezmoi.toml - ZK circuit design -- use noir skill
- Solidity or Ethereum -- use solidity-auditor or ethskills
Reading guide
| Working on | Read |
| Nix language idioms, builtins, let/with/inherit | references/language |
| Flake structure, inputs, outputs, lockfiles | references/flakes |
| NixOS modules, options, services | references/nixos |
| Home Manager config, programs, activation | references/home-manager |
| Building packages (mkDerivation, language builders) | references/packaging |
| Nix profiles, registries, nix-env alternatives | references/profiles |
| Agent skills as Nix packages (agent-skills-nix, rigup, nix-agent MCP) | references/agent-integration |
Key principles
- Reproducibility first -- pin inputs, use flake.lock, avoid impure operations
- Composition over mutation -- overlay and override, never patch in place
- Lazy evaluation -- Nix is lazy; structure code to exploit this
- Declarative over imperative -- describe the target state, not the steps
- Module system is the API -- options with types, defaults, and docs
Common pitfalls
| Mistake | Fix |
Using rec { } when let ... in works | rec pollutes scope and causes infinite recursion -- prefer let |
with pkgs; at module level | Shadows names silently -- use pkgs.foo or selective inherit |
Forgetting meta.mainProgram | Breaks nix run -- always set it for packages with binaries |
builtins.fetchurl in flakes | Impure -- use flake inputs or fetchurl from nixpkgs |
| Mutable channel references | Pin nixpkgs as a flake input, not <nixpkgs> |
nix-env -i for system packages | Use environment.systemPackages or home.packages |
Testing with nix-build when flake | Use nix build .#package -- nix-build ignores flake.nix |
See also
- droo-stack -- shell patterns for nix-related scripts
- chezmoi templates in droo-stack --
paths.zsh.tmplnix conditionals
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

