Upgrade flake

From richardgill/nix · View interactive version

Upgrade flake is an AI agent skill from the GitHub repository richardgill/nix. This skill updates flake.lock to get latest packages within current NixOS release. Triggers: "update flake", "upgrade flake", "nix flake update", "bump flake.lock", "update flake inputs", "refresh inputs", "update dependencies". Runs nix flake update, checks build, optionally applies. Not for NixOS

How to use this skill

Skill file

Upgrade Flake Inputs

Update flake.lock to pull in the latest commits from all flake inputs. This gets you newer package versions without changing NixOS release channels.

What this does

Process

  1. Update the lock file

```bash

just update

```

This runs nix flake update and updates flake.lock.

  1. Build and verify (safe dry-run)

```bash

just check

```

Builds all configurations without applying. If this fails, fix errors before proceeding.

  1. Apply the update (when ready)

```bash

just switch

```

  1. Verify services are running

```bash

systemctl status docker tailscaled

```

Rollback if needed

When you're done echo out the instructions to:

# Revert to previous system generation
sudo nixos-rebuild switch --rollback

# Revert flake.lock to previous state
git checkout flake.lock

Tips

$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.