Upgrade nixos

From richardgill/nix · View interactive version

Upgrade nixos is an AI agent skill from the GitHub repository richardgill/nix. This skill upgrades NixOS to a new release version (e.g., 25.05 → 25.11). Triggers: "upgrade nixos", "upgrade to new release", "update nixos version", "move to nixos 25.11", "nixos release upgrade", "upgrade system version". Researches breaking changes, updates flake inputs, guides through upgrade.

How to use this skill

Skill file

Upgrade NixOS Release

Upgrade NixOS to a new stable release version. This involves updating version-pinned flake inputs and handling any breaking changes.

Process

  1. Check current state

```bash

nixos-version

nix --version

```

  1. Identify version-pinned inputs in flake/flake.nix that need updating:
  1. Research the target release
  1. Identify breaking changes that affect this config:
  1. Create upgrade plan (use creating-plans skill):
  1. Execute upgrade (when user is ready):

```bash

# Edit flake/flake.nix with new versions

just update # Update flake.lock

just check # Build without applying (safe)

just switch # Apply the upgrade

```

  1. Post-upgrade verification:

```bash

nixos-version

nix --version

docker --version

systemctl status docker tailscaled

niri --version

```

What stays pinned (don't change)

Rollback

Print out the instructions to:

sudo nixos-rebuild switch --rollback
git checkout flake/flake.nix flake/flake.lock

$ARGUMENTS

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.