update-nixpkgs-unstable
Update nixpkgs-unstable reference in flake.nix to latest commit
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Update nixpkgs-unstable reference in flake.nix to latest commit
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Maintain models used for rpiv-pi skills and agents
Update OpenCode Go model rate limits and availability in chezmoi/dot_pi/agent/models.json
Maintain synchronized keybindings across Ghostty, WezTerm, and Kitty terminal configs. Use when editing any terminal emulator configuration file, adding new keybindings, or ensuring consistency across terminals.
Based on SOC occupation classification
| name | update-nixpkgs-unstable |
| description | Update nixpkgs-unstable reference in flake.nix to latest commit |
Update pinned nixpkgs-unstable commit to latest upstream.
This skill documents the process for updating the unstable nixpkgs reference from a pinned commit hash to the current HEAD of nixpkgs-unstable branch.
flake.nix to latest nixpkgs-unstablegit ls-remote to fetch commit hashdarwin-rebuildโโโโโโโโโโโโโโโโโโโ
โ 1. Fetch latest โ
โ commit hash โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 2. Update โ
โ flake.nix โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 3. Commit โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ 4. Run sudo โ
โ darwin-rebuildโ
โโโโโโโโโโโโโโโโโโโ
| Step | Command | Purpose |
|---|---|---|
| Fetch hash | git ls-remote https://github.com/NixOS/nixpkgs.git refs/heads/nixpkgs-unstable | cut -f1 | Get latest commit |
| Update flake | Edit line with nixpkgs-unstable-*.url | Replace old hash |
| Commit | git add flake.nix && git commit -m "chore: update nixpkgs-unstable to \<hash\>" | Stage & commit |
| Rebuild | sudo darwin-rebuild switch --flake $HOME/code/nixos-dotfiles#cyan | Apply to macOS |
git ls-remote https://github.com/NixOS/nixpkgs.git refs/heads/nixpkgs-unstable | cut -f1
Output: <some new commit hash> (example value only)
Edit the flake.nix file at line 7 (where nixpkgs-unstable is defined):
Before:
nixpkgs-unstable-2611.url = "github:NixOS/nixpkgs/<old commit hash>";
After:
nixpkgs-unstable-2611.url = "github:NixOS/nixpkgs/<some new commit hash>";
git add flake.nix
git commit -m "chore: update nixpkgs-unstable"
| Mistake | Fix |
|---|---|
| Forgetting to stage file | Run git add flake.nix before commit |
| Copying incomplete hash | Verify hash is 40 characters (full SHA) |