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