new-host
スター14
フォーク2
更新日2026年6月5日 12:34
Add a new NixOS or Darwin host to the repository.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
ファイルエクスプローラー
2 ファイルSKILL.md
readonlyメニュー
Add a new NixOS or Darwin host to the repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | new-host |
| description | Add a new NixOS or Darwin host to the repository. |
Ask the user:
| Question | Options |
|---|---|
| Platform | nixos or darwin |
| Hostname | Genshin character (lowercase, e.g., nahida, furina) |
| Architecture | NixOS: x86_64-linux, aarch64-linux / Darwin: aarch64-darwin, x86_64-darwin |
| Type (NixOS only) | bare-metal, vm, container, wsl |
./new-host.sh <platform> <hostname> <arch> [type]
Examples:
./new-host.sh nixos wanderer x86_64-linux wsl
./new-host.sh darwin keqing aarch64-darwin
Edit hosts/<platform>/<hostname>/system.nix:
nixos-generate-config --show-hardware-configsecrets/pubkeys.nix, then agenix -rcodgician.system.impermanence.enable = truecodgician.system.brew.casksmas search "App Name", add to masAppsnix fmt
nix flake check
nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel # NixOS
nix build .#darwinConfigurations.<hostname>.system # Darwin
nixos-rebuild switch --flake .#<hostname> --target-host <hostname> --use-remote-sudo
./result/sw/bin/darwin-rebuild switch --flake .
hosts/<platform>/<hostname>/nix flake check passes