build-commands

Reference NixOS build, test, and flake commands for system configuration tasks.

Updated May 16, 2019
One-click install
npx skills add https://github.com/cgeorgii/dots --skill build-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-commands
Source: https://github.com/cgeorgii/dots/tree/main/.claude/skills/build-commands
Command: npx skills add https://github.com/cgeorgii/dots --skill build-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a reference guide for NixOS build, test, and flake commands to help users perform rebuilds, checks, formatting, and development tasks.

Core Features & Use Cases

  • NixOS Operations: Rebuild system with sudo nixos-rebuild switch, link dotfiles, perform a dry-run config check, and build specific configs.
  • Flake Operations: Check flake, update flake inputs, and setup dev environment with nix develop.
  • Formatting: Format Nix files using nixfmt.
  • Important Notes: Guidelines on running commands manually and declarative configuration.

Quick Start

Ask me to perform common NixOS build, test, and flake tasks, such as rebuilding with sudo nixos-rebuild switch.

Frequently Asked Questions about build-commands

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

FAQPage Schema
How do I rebuild my NixOS system configuration with flakes?

To perform a NixOS rebuild, use `sudo nixos-rebuild switch` to apply your declarative configuration. This Skill provides reference commands to speed up system rebuilds, configuration checks, and flake updates.

How do I update flake inputs in my NixOS configuration?

You can update flake inputs using the `nix flake update` command. This Skill offers guidance on flake operations including checking flakes and updating inputs for NixOS development environments.

How do I check my NixOS configuration before applying changes?

Perform a dry-run config check to evaluate your NixOS configuration without applying changes. This Skill provides reference commands for configuration checks and building specific configs safely.

How do I set up a Nix development environment?

Use `nix develop` to set up your Nix dev-environment. This Skill provides command guidance for entering development shells and managing flake-based development workflows.

How do I format Nix files in my configuration?

Format your Nix files using `nixfmt`. This Skill includes command references for formatting Nix code to maintain consistent style across your declarative configuration files.

Do I need sudo for NixOS rebuild commands?

Yes, `sudo` is required for `nixos-rebuild switch` to apply system-level changes. This Skill provides notes on running commands manually and guidelines for declarative configuration management.