Unable to update NixOS channels

Hello,

I’m trying to update to NixOS 25.05, but I am unable to update my nixos channel.

I changed nixos from https://channels.nixos.org/nixos-24.11 to https://channels.nixos.org/nixos-25.05.

sudo nix-channel --list
nixos https://channels.nixos.org/nixos-25.05
nixos-23.05 https://channels.nixos.org/nixos-23.05
nixos-unstable https://nixos.org/channels/nixos-unstable
sudo nix-channel --update
unpacking 3 channels...

nix flake update does not update anything.

I deleted both caches:

sudo rm -r /root/.cache/nix 
rm -r  ~/.cache/nix

But, this is not helping either.

What can I do?

???
25.05?
Look at flake.nix

  inputs = {
  nixpkgs.url = "github:nixos/nixpkgs/release-25.05";

If you are using flakes, then the channels won’t matter at all. In that case you need to edit your flake.nix file and change the inputs to refer to 25.05 (i.e. set something like nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05).
If you are not using flakes, then nix flake update should not affect your setup either.

1 Like

I feel a bit stupid. But, I don’t have a big ego. :grin: