nh

Manage NixOS, Home Manager, and Nix-Darwin configurations with simplified commands.

Updated Feb 21, 2024
One-click install
npx skills add https://github.com/zhongjis/nix-config --skill nh-zhongjis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nh
Source: https://github.com/zhongjis/nix-config/tree/main/modules/home-manager/features/ai-tools/common/skills/general/nh
Command: npx skills add https://github.com/zhongjis/nix-config --skill nh-zhongjis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies complex Nix operations, making it easier to manage system configurations, update packages, and clean up old generations.

Core Features & Use Cases

  • System Configuration Switching: Effortlessly switch between NixOS, Home Manager, and Nix-Darwin configurations.
  • Package Management: Search for packages within Nixpkgs.
  • System Maintenance: Clean up old Nix store generations and profiles to free up disk space.
  • Use Case: When you need to apply the latest changes to your NixOS system, you can use this Skill to build and switch to the new configuration.

Quick Start

Use the nh skill to switch your NixOS configuration.

Frequently Asked Questions about nh

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

FAQPage Schema
How do I switch NixOS and Home Manager configurations easily?

You can switch NixOS and Home Manager configurations by running simplified commands to build and apply the new system setup, effortlessly applying the latest changes across your environments.

Do I need Nix Flakes enabled to manage NixOS system configurations?

Yes, Nix and Flakes must be installed and configured for effective operation. The Skill relies on Flakes to properly manage and switch between your NixOS, Home Manager, and Nix-Darwin generations.

What is the best way to clean up old Nix store generations and free up disk space?

The best way to clean up the Nix store is by running maintenance commands that remove old generations and profiles, freeing up disk space by clearing out outdated configuration builds.

Can I search for packages within Nixpkgs using this tool?

Yes, you can search for packages within Nixpkgs. This package management feature helps locate specific software directly through simplified commands before adding it to your configuration.

How do I roll back to a previous NixOS generation after a failed update?

You can roll back to a previous NixOS generation by using the simplified rollback commands provided, allowing you to quickly revert your system configuration to a stable state if a recent update fails.