Nix darwin reference

From edmundmiller/dotfiles · View interactive version

Nix darwin reference is an AI agent skill from the GitHub repository edmundmiller/dotfiles. Provides nix-darwin references for macOS module options, Mac bootstrap, and Darwin rebuild failures in dotfiles.

How to use this skill

Skill file

nix-darwin reference workflow

Use this skill for Darwin/macOS Nix work in this repo. Keep it out of the global agent rules: this is reference workflow, not behavior that belongs in every prompt.

First checks

Primary references

Use the narrowest reference that answers the question:

| Need | Reference |

| ---------------------------------- | ------------------------------------------------------------------------------------------------------ |

| nix-darwin modules/options | darwin-help, man 5 configuration.nix, or https://nix-darwin.github.io/nix-darwin/manual/index.html |

| nix-darwin install/bootstrap | https://github.com/nix-darwin/nix-darwin |

| Lix install/upgrade on macOS/Linux | https://lix.systems/install/#on-any-other-linuxmacos-system |

| Legacy nix-build behavior | https://nix.dev/manual/nix/2.34/command-ref/nix-build.html |

Option lookup order

  1. Use local docs first when available:
  1. Use the online nix-darwin reference when local docs are unavailable or stale.
  2. Search this repo for existing patterns before adding a second convention.
  3. Use source-level nix-darwin docs only when option reference docs are not enough.

Install notes

`nix-build` notes

Use nix-build only when a legacy/channel workflow needs it. Prefer nix build or repo wrappers for normal flake work.

Important details from the Nix manual:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.