agentleFS
ahonnahonn/dotfiles/.claude/skills/nix-darwin/SKILL.md

nix-darwin

Skill62 starsChanged 2 months agoMITView on GitHub

Configure this macOS dotfiles repository's Nix modules, hosts, and packages, or diagnose darwin-rebuild failures.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

nix-darwin Configuration

Two hosts (workstation, homelab) are built by mkDarwinConfig in flake.nix from three layers: darwin modules (system) → home-manager (user) → nix-homebrew (GUI apps and taps). Both hosts share nixpkgs-unstable. Read the host's home.nix and homebrew.nix for what is currently enabled; do not rely on remembered program lists.

Conventions

New programs follow templates/program-module.md: an options.my.<program>.enable module under modules/home-manager/programs/, imported by the host's home.nix and enabled there. Shared programs are imported by modules/home-manager/base.nix instead.

Config deliveryWhen to useExample
mkOutOfStoreSymlinkConfig edited often, applied without rebuildneovim, aerospace
builtins.readFileConfig copied into the Nix storezed-editor
Inline Nix settingsSmall, Nix-native configghostty, starship

Naming: kebab-case.nix files and host names, my.<program>.enable options, symlink/<name>.symlink dotfiles, and conventional commit scopes such as feat(neovim): or fix(darwin):.

Read by problem

Problem or decisionReference
Where a module is wired in, or why the layout is shaped this wayarchitecture.md
Build, rollback, generations, input updates, garbage collectioncommands.md
darwin-rebuild or evaluation failure, Homebrew DSL or tap errors, macOS compatibilitygotchas.md
The user asks how to restructure or improve the configurationcommunity-patterns.md — check each pattern's status in this repo first

Complete the change

Evaluate each affected host with nix eval --raw .#darwinConfigurations.<host>.system.drvPath. nix flake check only checks formatting and passes even when a host fails to evaluate; nix fmt fixes formatting. Changes under modules/, hosts/, or flake.nix take effect only after darwin-rebuild switch; follow the project CLAUDE.md for when that needs confirmation.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.