nixkil

Agent skill for Nix language programming, Nix package manager, and NixOS

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "nixkil" with this command: npx skills add gotha/nixkil/gotha-nixkil-nixkil

nixkil

Agent skill for Nix language programming, Nix package manager, and NixOS.

CLI Commands

This skill provides knowledge and guidance for working with Nix. Use the standard Nix CLI tools directly via shell commands.

Package Management

# Search for packages
nix search nixpkgs <query>
nix search nixpkgs python --json  # JSON output for parsing

# Get package info
nix eval nixpkgs#<package>.meta --json

# Run a package without installing
nix run nixpkgs#<package> -- [args]

# Enter a shell with packages
nix shell nixpkgs#pkg1 nixpkgs#pkg2

# Build a package
nix build nixpkgs#<package>

Flake Operations

# Initialize a new flake
nix flake init
nix flake init --template templates#<name>

# Show flake outputs
nix flake show [flake-ref]
nix flake show --json  # JSON output

# Check/validate a flake
nix flake check [flake-ref]

# Update flake inputs
nix flake update [flake-ref]
nix flake update <input-name> [flake-ref]  # Update specific input

# Show lock file info
nix flake metadata [flake-ref]

NixOS Configuration

# Search NixOS options (use nixos.org/options or)
nix eval --expr 'builtins.attrNames (import <nixpkgs/nixos> {}).options'

# Rebuild system (requires sudo)
sudo nixos-rebuild switch
sudo nixos-rebuild switch --flake .#hostname
sudo nixos-rebuild test  # Test without making it default
sudo nixos-rebuild boot  # Activate on next boot

# List generations
nix-env --list-generations -p /nix/var/nix/profiles/system

Language Tools

# Evaluate Nix expressions
nix eval --expr '1 + 1'
nix eval --file ./file.nix
nix eval .#someOutput --json

# Format Nix files (nixfmt or alejandra)
nix fmt  # Uses formatter from flake
nixfmt file.nix
alejandra file.nix

# Lint Nix files
statix check .
deadnix .

# Parse/validate syntax
nix-instantiate --parse file.nix

Useful Flags

  • --json - Output as JSON for parsing
  • --verbose / -v - Show more details
  • --dry-run - Show what would be done
  • --show-trace - Show full error traces
  • --impure - Allow impure evaluation (env vars, etc.)

Knowledge Areas

AreaTopics
nix-languageSyntax, types, functions, builtins, derivations
nixpkgsPackage overrides, overlays, cross-compilation
flakesStructure, inputs/outputs, commands, templates
devenvDevelopment environments with services and pre-commit hooks
nixosSystem configuration, modules, services
nix-darwinmacOS configuration with Nix
home-managerUser environment and dotfiles management
macos-linux-builderBuilding Linux packages on macOS
troubleshootingCommon errors and solutions

Examples

DevShell Examples

  • examples/devshells/golang/ - Go development environment
  • examples/devshells/python/ - Python with venv and tooling
  • examples/devshells/rust/ - Rust with cargo tools
  • examples/devshells/nodejs/ - Node.js with TypeScript
  • examples/devshells/java/ - Java with Maven and Gradle
  • examples/devshells/multi-lang/ - Multiple languages in one flake

Devenv Examples

  • examples/devenv/basic/ - Basic devenv setup
  • examples/devenv/with-services/ - PostgreSQL, Redis services
  • examples/devenv/with-precommit/ - Pre-commit hooks configuration

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated