Agent skill
nix-patterns
NixOS module patterns. Use when creating or editing NixOS/home-manager modules, adding packages, or configuring programs.
Install this agent skill to your Project
npx add-skill https://github.com/EdgarPost/claude-code/tree/main/skills/nix
SKILL.md
NixOS Module Patterns
Directory structure
modules/home/*.nix- Home-manager modules (user packages, dotfiles)modules/nixos/*.nix- NixOS modules (system services)hosts/*/- Machine-specific configurationhome/default.nix- Main home-manager entry point
Adding packages
home.packages = with pkgs; [
package-name
] ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
x86-only-package
];
Creating a module
{ pkgs, ... }:
{
home.packages = with pkgs; [ mypackage ];
xdg.configFile."app/config.json".text = builtins.toJSON { setting = "value"; };
}
Import in home/default.nix:
imports = [ ../modules/home/mymodule.nix ];
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
git-guardrails-claude-code
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?