Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: richardgill-nix-upgrade-nixos3description: Upgrade NixOS Release4---56# Upgrade NixOS Release78Upgrade NixOS to a new stable release version. This involves updating version-pinned flake inputs and handling any breaking changes.910## Process11121. **Check current state**13 ```bash14 nixos-version15 nix --version16 ```17182. **Identify version-pinned inputs in flake/flake.nix** that need updating:19 - `nixpkgs` (e.g., `nixos-25.05` → `nixos-25.11`)20 - `home-manager` (e.g., `release-25.05` → `release-25.11`)21 - `nix-darwin` (e.g., `nix-darwin-25.05` → `nix-darwin-25.11`)22 - `stylix` (e.g., `release-25.05` → `release-25.11`)23243. **Research the target release**25 - Use web search to find the latest stable NixOS release26 - Check release notes for breaking changes relevant to this config27 - Verify release branches exist for home-manager, stylix, nix-darwin28294. **Identify breaking changes** that affect this config:30 - Scan modules for services/packages that might be affected31 - Key areas: Hyprland, Docker, Steam, Secure Boot, impermanence32335. **Create upgrade plan** (use creating-plans skill):34 - Save to `thoughts/shared/issues/NN-nixos-<version>-upgrade/plan.md`35 - Include exact file changes with line numbers36 - Include verification commands37 - Include rollback instructions38396. **Execute upgrade** (when user is ready):40 ```bash41 # Edit flake/flake.nix with new versions42 just update # Update flake.lock43 just check # Build without applying (safe)44 just switch # Apply the upgrade45 ```46477. **Post-upgrade verification**:48 ```bash49 nixos-version50 nix --version51 docker --version52 systemctl status docker tailscaled53 hyprctl version54 ```5556## What stays pinned (don't change)5758- `lanzaboote` - explicit version pin (e.g., v0.4.2), not tied to NixOS releases59- `nixpkgs-unstable` - always tracks unstable60- Inputs that `follow` nixpkgs - automatically updated6162## Rollback63Print out the instructions to:64```bash65sudo nixos-rebuild switch --rollback66git checkout flake/flake.nix flake/flake.lock67```6869$ARGUMENTS7071---72> Converted and distributed by [TomeVault](https://tomevault.io/claim/richardgill) — claim your Tome and manage your conversions.73<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/richardgill-nix-upgrade-nixos in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Upgrade NixOS Release It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.