multiAI Summary Pending

nix-patterns

NixOS module patterns. Use when creating or editing NixOS/home-manager modules, adding packages, or configuring programs.

231 stars

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nix-patterns/SKILL.md --create-dirs "https://raw.githubusercontent.com/aiskillstore/marketplace/main/skills/edgarpost/nix-patterns/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nix-patterns/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nix-patterns Compares

Feature / Agentnix-patternsStandard Approach
Platform SupportmultiLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

NixOS module patterns. Use when creating or editing NixOS/home-manager modules, adding packages, or configuring programs.

Which AI agents support this skill?

This skill is compatible with multi.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# NixOS Module Patterns

## Directory structure
- `modules/home/*.nix` - Home-manager modules (user packages, dotfiles)
- `modules/nixos/*.nix` - NixOS modules (system services)
- `hosts/*/` - Machine-specific configuration
- `home/default.nix` - Main home-manager entry point

## Adding packages
```nix
home.packages = with pkgs; [
  package-name
] ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
  x86-only-package
];
```

## Creating a module
```nix
{ pkgs, ... }:
{
  home.packages = with pkgs; [ mypackage ];
  xdg.configFile."app/config.json".text = builtins.toJSON { setting = "value"; };
}
```

Import in `home/default.nix`:
```nix
imports = [ ../modules/home/mymodule.nix ];
```