testing

Identify affected NixOS hosts and homes, then build and test targeted configurations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that changes made to the Nix configuration are thoroughly tested and validated before deployment, preventing potential system instability or breakage.

Core Features & Use Cases

  • Affected Configuration Discovery: Identifies all NixOS hosts and user home configurations impacted by file modifications using a module-graph script.
  • Targeted Testing: Provides specific commands to build and test individual host or home configurations based on the discovery results.
  • Use Case: After updating a network service module, use this Skill to pinpoint which servers and user environments rely on it, then build and verify those specific configurations to ensure the update is safe.

Quick Start

Run the module-graph script to find affected configurations and then build one affected host.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I test NixOS configuration changes before deployment?

Test NixOS configuration changes before deployment by running a module-graph script to identify affected hosts and homes, then executing specific build commands to validate those targeted configurations.

How does module-graph validation work for Nix home-manager configurations?

Module-graph validation for Nix home-manager configurations works by analyzing file modifications to discover all impacted user environments, enabling targeted builds that verify system stability without testing unrelated configurations.

What is the best way to identify affected NixOS hosts after updating a module?

The best way to identify affected NixOS hosts after updating a module is using a module-graph discovery script that maps configuration dependencies and pinpoints exactly which servers and user environments rely on the modified file.

Can I run targeted builds for specific NixOS hosts instead of testing everything?

Yes, you can run targeted builds for specific NixOS hosts by using the module-graph script results to determine impacted configurations, then issuing build commands for only those affected hosts or home-manager environments.

Why should I validate Nix configuration changes before applying them?

You should validate Nix configuration changes before applying them to prevent potential system instability or breakage, ensuring that modifications to network service modules or other files do not disrupt dependent servers and user environments.