nix-manager

Automate Nix package management and flake configuration across macOS and Linux.

193|16|Updated Mar 10, 2023
One-click install
npx skills add https://github.com/wcygan/dotfiles --skill nix-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nix-manager
Source: https://github.com/wcygan/dotfiles/tree/main/.claude/skills/nix-manager
Command: npx skills add https://github.com/wcygan/dotfiles --skill nix-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the management of Nix packages and configurations, ensuring reproducible development environments across macOS and Linux. It automates package installation, updates, and troubleshooting, eliminating "works on my machine" issues and streamlining your system setup.

Core Features & Use Cases

  • Reproducible Package Management: Install and manage system-wide or user-specific packages using Nix flakes, ensuring consistent versions everywhere.
  • Environment Setup: Create isolated development shells with specific toolchains and dependencies for any project.
  • Cross-Platform Compatibility: Maintain a single configuration for macOS and Linux, simplifying dotfiles management.
  • Use Case: Add a new CLI tool like ripgrep to your system, update all your Nix packages to their latest versions, and troubleshoot a slow Nix build by optimizing the store, all with guided assistance.

Quick Start

Add the 'cowsay' package to my Nix flake configuration and then upgrade my Nix profile to install it.

Frequently Asked Questions about nix-manager

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

FAQPage Schema
How do I create a reproducible development environment with Nix flakes?

Nix flakes enable reproducible environments by defining exact package versions and dependencies in a declarative configuration. This Skill automates flake creation and validation, ensuring consistent setups across macOS and Linux systems without version drift or platform-specific surprises.

Can I manage packages across both macOS and Linux with a single Nix configuration?

Yes. This Skill handles cross-platform Nix configuration using Determinate Systems patterns and multi-system outputs, letting you maintain one dotfiles repository that works identically on both macOS and Linux.

How do I troubleshoot slow Nix builds and optimize my Nix store?

This Skill provides guided troubleshooting and optimization workflows using built-in diagnostic tools like diagnose-nix.sh, helping identify bottlenecks in your Nix store and package builds on both platforms.

What's the best way to add new packages to my Nix system and keep them updated?

This Skill automates adding packages to your Nix flake configuration and upgrading your profile with flake checks and update tooling. It handles both one-time installations and ongoing version management.

Do I need to manually edit flake files, or can this handle package management automatically?

This Skill automates Nix package management and flake validation, reducing manual file editing. It handles installation, updates, and profile upgrades while meeting technical requirements for flake-based configurations.