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