nix

Automate Nix/NixOS package development, configuration, and maintenance workflows.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/randoneering/nix-flake-mirror --skill nix-randoneering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nix
Source: https://github.com/randoneering/nix-flake-mirror/tree/main/home/programs/opencode/skills/nix
Command: npx skills add https://github.com/randoneering/nix-flake-mirror --skill nix-randoneering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Nix/NixOS workflow optimizes packaging, configuration, and maintenance by providing structured guidance for derivations, builds, and system configurations across multiple hosts.

Core Features & Use Cases

  • Package development workflows: guidance for creating, updating, and testing Nix packages, overlays, and derivations across Nixpkgs and NixOS modules.
  • Flake-based automation: best practices for using flakes to manage multi-system configurations and reusable modules.
  • Troubleshooting and safety: strategies for hash mismatches, build failures, and reproducible builds with Nix.

Quick Start

Run nix flake show from the repository root to inspect configurations.

Frequently Asked Questions about nix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and test Nix derivations for package development?

To create Nix derivations, you structure package definitions within Nixpkgs modules. This process provides guidance for developing, updating, and testing packages, managing build inputs, and ensuring reproducible builds across multiple systems.

What is the best way to manage multi-system NixOS configurations with flakes?

Managing multi-system NixOS configurations with flakes involves using flake-based automation to structure reusable modules. This approach applies best practices for maintaining consistent system configurations and derivations across multiple hosts.

Why does my Nix build fail with a hash mismatch, and how do I troubleshoot it?

A Nix build fails with a hash mismatch when the expected derivation hash does not match the fetched source. You can troubleshoot these build failures using targeted strategies for hash management and correcting build inputs in your Nixpkgs configuration.

Can I use Nix overlays to maintain packages across multiple hosts?

Yes, you can use Nix overlays to maintain and customize packages across multiple hosts. This workflow supports creating and updating overlays alongside derivations within Nixpkgs and NixOS modules to ensure consistent multi-system configuration.

How do I inspect Nix flake configurations from a repository root?

To inspect Nix flake configurations from a repository root, you run the command `nix flake show`. This allows you to quickly examine the structure of your multi-system configurations and reusable modules before applying them.