KS
Killer-Skills

nix — nix setup guide nix setup guide, nix development best practices, how to use nix for AI, nix vs other package managers, nix install for AI agents, nix alternative for reproducible builds

v1.0.0
GitHub

About this Skill

Perfect for DevOps Agents needing consistent and reproducible builds using nix nix is a package manager that enables reproducible and declarative configuration of AI setups, ensuring consistent builds and deployments.

Features

Utilizes flake-parts for creating new flakes
Formats code with nixpkgs-fmt for consistency
Employs writeShellApplication for shell scripts with strict bash options
Runs ShellCheck validation for error-free scripts
Automatically sets meta.description for better documentation

# Core Topics

srid srid
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
44
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add srid/AI/nix

Agent Capability Analysis

The nix MCP Server by srid is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for nix setup guide, nix development best practices, how to use nix for AI.

Ideal Agent Persona

Perfect for DevOps Agents needing consistent and reproducible builds using nix

Core Value

Empowers agents to ensure deterministic builds with nix, utilizing flake-parts for creating new flakes, nixpkgs-fmt for formatting, and writeShellApplication for shell scripts, while enforcing strict bash options and ShellCheck validation

Capabilities Granted for nix MCP Server

Automating nix build processes with --print-out-paths flag
Generating reproducible environments using flake-parts
Debugging shell scripts with ShellCheck validation and strict bash options

! Prerequisites & Limits

  • Requires nix installation
  • Limited to nix-based builds
  • Mandatory use of --print-out-paths flag with nix build
Project
SKILL.md
1.2 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Nix Development

Guidelines

  • Use flake-parts when creating new flakes
  • Format with nixpkgs-fmt after changes
  • Use writeShellApplication for shell scripts (not writeShellScriptBin)
    • Automatically runs ShellCheck validation
    • Sets strict bash options (set -euo pipefail)
    • Fix ALL ShellCheck warnings without ignoring them
    • Add meta.description

Building with Nix

When running nix build:

  • ALWAYS use --print-out-paths flag so final build path is printed
  • NEVER run with timeout - allow command to finish completely
  • If command doesn't finish OR final out path is not shown, consider it FAILED
  • On failure, investigate logs without hallucinating - look at actual error messages

Home-Manager Module

When adding a home-manager module to a project:

  1. Module: nix/modules/home-manager/<name>.nix - options & config with systemd (Linux) + launchd (Darwin)
  2. Export: nix/modules/flake/<name>-module.nix - flake.homeManagerModules.<name> = ../home-manager/<name>.nix;
  3. Example: nix/examples/home-manager/flake.nix - homeConfiguration + checks.runNixOSTest
  4. CI: Add to vira.hs build.flakes: "./nix/examples/home-manager" { overrideInputs = [("<name>", ".")] }
  5. Format: nixpkgs-fmt all .nix files

Related Skills

Looking for an alternative to nix or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication