Nix Flake Operations
Use this skill for operational workflows in this repository.
Repo-Specific Commands
- •macOS build only:
apps/aarch64-darwin/build - •macOS apply:
apps/aarch64-darwin/switch - •macOS rollback:
apps/aarch64-darwin/rollback - •NixOS apply:
apps/x86_64-linux/switch <hostname> - •Global checks:
nix flake check - •Update lockfile:
nix flake update [input] - •Update custom packages:
nix run .#update-packages
Workflow
- •Run
nix flake checkfor baseline validation. - •Build the target system before switching.
- •Switch/apply only after build success.
- •If change impacts versions, update with
nix flake updateand re-check. - •For package updates under
packages/*, runnix run .#update-packages.
Guardrails
- •Prefer
buildbeforeswitch. - •Do not edit generated symlink
result. - •Keep changes host-aware (
lunar,nixos-ry6a). - •If command wrappers are missing for a target platform, use direct
nixos-rebuild/darwin-rebuildwith--flake.