← Back to list

testing
by DaRacci
An idiots nix config
⭐ 17🍴 0📅 Jan 24, 2026
SKILL.md
name: testing description: Test changes using module-graph and build commands
Testing
Critical Requirement
After making changes you MUST ALWAYS evaluate and test your changes.
Finding Affected Configurations
Use the module-graph script to determine which hosts and homes are affected by your changes:
./flake/dev/scripts/module-graph.nu
This outputs JSON showing which configurations use each file:
{
"file": "modules/nixos/services/tailscale.nix",
"hosts": ["nixdev", "nixmi", "nixcloud"],
"homes": []
}
Minimum Test Requirements
Based on the module-graph output, you must test at least one of each type affected:
| Changed File Affects | Minimum Test |
|---|---|
| Hosts only | Build one affected host |
| Homes only | Build one affected home |
| Both hosts and homes | Build one host AND one home |
Test Commands
Test a host configuration
nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel
Test a home configuration
nix build .#homeConfigurations."<user>@<host>".activationPackage
Run full flake check
nix flake check --override-input devenv-root "file+file://$PWD/.devenv/root"
Testing Workflow Example
-
Make changes to
modules/nixos/services/tailscale.nix -
Run module-graph to find affected configs:
./flake/dev/scripts/module-graph.nu | jq '.[] | select(.file | contains("tailscale"))' -
Pick one affected host and build:
nix build .#nixosConfigurations.nixdev.config.system.build.toplevel -
If the change also affects homes, build one:
nix build .#homeConfigurations."racci@nixmi".activationPackage -
Format your changes:
nix fmt modules/nixos/services/tailscale.nix
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon