スキル一覧に戻る
DaRacci

testing

by DaRacci

An idiots nix config

17🍴 0📅 2026年1月24日
GitHubで見るManusで実行

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 AffectsMinimum Test
Hosts onlyBuild one affected host
Homes onlyBuild one affected home
Both hosts and homesBuild 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

  1. Make changes to modules/nixos/services/tailscale.nix

  2. Run module-graph to find affected configs:

    ./flake/dev/scripts/module-graph.nu | jq '.[] | select(.file | contains("tailscale"))'
    
  3. Pick one affected host and build:

    nix build .#nixosConfigurations.nixdev.config.system.build.toplevel
    
  4. If the change also affects homes, build one:

    nix build .#homeConfigurations."racci@nixmi".activationPackage
    
  5. Format your changes:

    nix fmt modules/nixos/services/tailscale.nix
    

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です