update-nixpkgs-unstable
Update nixpkgs-unstable reference in flake.nix to latest commit
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Update nixpkgs-unstable reference in flake.nix to latest commit
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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.
| 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) |