update-nixpkgs

Update three nixpkgs flake inputs to latest revisions with confirmation.

4|Updated Apr 10, 2023
One-click install
npx skills add https://github.com/dudeofawesome/nix-config --skill update-nixpkgs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-nixpkgs
Source: https://github.com/dudeofawesome/nix-config/tree/main/.claude/skills/update-nixpkgs
Command: npx skills add https://github.com/dudeofawesome/nix-config --skill update-nixpkgs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of updating nixpkgs flake inputs across linux-stable, darwin-stable, and unstable, ensuring consistent versions.

Core Features & Use Cases

  • Update all three nixpkgs flake inputs in one step to keep systems aligned.
  • Validate results and report old-to-new revisions, with a guided confirmation step to avoid unintended changes.
  • Use with NixOS, macOS, and multi-host environments where flakes manage channel inputs.

Quick Start

Use the nix flake update command to refresh the three nixpkgs channels.

Frequently Asked Questions about update-nixpkgs

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

FAQPage Schema
How do I update nixpkgs flake inputs across multiple platforms at once?

To update nixpkgs flake inputs, this Skill runs nix flake update to refresh linux-stable, darwin-stable, and unstable channels simultaneously. It ensures consistent versions across multi-platform Nix configurations and reports old-to-new revisions for traceability.

What is the safest way to refresh nixpkgs channels in a Nix flake?

The safest way to refresh nixpkgs channels involves a guided confirmation step before executing updates. This Skill validates results and reports old-to-new revisions, avoiding unintended changes while keeping systems aligned across NixOS and macOS environments.

Does this nixpkgs update process work for both NixOS and macOS multi-host environments?

Yes, the nixpkgs update process works for both NixOS and macOS multi-host environments. It is designed for teams managing multi-platform Nix configurations where flakes manage channel inputs, keeping darwin-stable and linux-stable revisions synchronized.

How can I track old and new nixpkgs revisions after a flake update?

You can track old and new nixpkgs revisions through the Skill's automated reporting feature. After executing the flake update, it validates results and reports the old and new revisions for each channel, providing an auditable change history for traceability.

Can I preview nixpkgs flake input changes before applying them?

Yes, you can preview nixpkgs flake input changes before applying them. The Skill includes a user confirmation step via AskUserQuestion, allowing you to review and validate the proposed channel updates to avoid unintended changes to your Nix configuration.