一键导入
build-push-hosts
Build NixOS host closures deterministically and push them to Attic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build NixOS host closures deterministically and push them to Attic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | build-push-hosts |
| description | Build NixOS host closures deterministically and push them to Attic. |
| compatibility | opencode |
| metadata | {"audience":"maintainers","repo":"nixos","workflow":"deploy-cache"} |
I build one or more nixosConfigurations.<host>.config.system.build.toplevel
closures and push them into the configured Attic cache.
I use the repo's deterministic nixos cache subcommand.
Use me when the user wants to:
nix developmainnixos cache interactive multi-selectConfirm the target cache and host scope.
mainBuild each host individually with a 60 minute timeout each.
nix develop --command nixos cache <host>
invocation so each has its own timeout context and does not block others.Run the repo command.
Report clearly.
Dry-run with interactive host selection:
nix develop --command nixos cache --dry-run
Build and push with interactive host selection:
nix develop --command nixos cache
Build and push specific hosts:
nix develop --command nixos cache hub kit pow
Build and push all hosts without prompting:
nix develop --command nixos cache --all
Include iso too:
nix develop --command nixos cache --all --include-iso
nixos cache wrapper with ad hoc build/push commands unless the user asks.iso unless explicitly requested.