building

Build and evaluate NixOS and Home-Manager configurations with flake checks.

18|1|Updated Jun 2, 2023
One-click install
npx skills add https://github.com/DaRacci/nix-config --skill building-daracci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building
Source: https://github.com/DaRacci/nix-config/tree/main/.opencode/skills/building
Command: npx skills add https://github.com/DaRacci/nix-config --skill building-daracci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of building, checking, and formatting NixOS and Home-Manager configurations, ensuring code quality and system integrity.

Core Features & Use Cases

  • Configuration Building: Compile NixOS system configurations and Home-Manager activation packages.
  • Code Quality: Format Nix code and perform comprehensive flake checks.
  • Development Environment: Easily enter a dedicated development shell for your Nix projects.
  • Use Case: When you've made changes to your NixOS configuration, use this Skill to build the entire system and verify that all components are correctly configured and integrated.

Quick Start

Use the building skill to build the NixOS system for the host named 'nixdev'.

Frequently Asked Questions about building

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

FAQPage Schema
How do I build and evaluate a NixOS configuration after making changes?

Building NixOS and Home-Manager configurations is handled by compiling system activation packages and running comprehensive flake checks to verify code quality. This ensures all modified components are correctly integrated before deployment.

Can I format Nix code and perform syntax checking automatically?

Yes, formatting Nix code and performing syntax checking are supported natively. The Skill streamlines code quality by facilitating formatting and executing flake checks to catch errors during the build process.

Do I need devenv to build NixOS configurations with this tool?

Yes, devenv is required to enter the dedicated development shell for your Nix projects. This provides the isolated environment needed to execute builds and run flake checks successfully.

How does automated discovery work for NixOS system deployment?

Automated discovery for system deployment works by automatically identifying configured hosts and users within your Nix flake. This allows the Skill to target specific environments for building and activation without manual specification.

What is the best way to verify Home-Manager activation packages before applying them?

The best way to verify Home-Manager activation packages is by using a Skill that builds the configurations and runs comprehensive flake checks. This validates the user environment activation process safely before any changes are applied.