I get warning that I am still on Stoat, but upgraded to channel 23.11

I have:

[paul@nixos:~]$ nix-channel --list
nixos https://nixos.org/channels/nixos-23.11

Done:
sudo nixos-rebuild switch --upgrade

Then rebooted…

But when I boot, I have the time to read that my version of Nixos 23.05 is out of support after december 31, 2023.

And the welcome message on terminal is: Welcome to NixOS 23.05.5533.70bdadeb94ff (x86_64)

Are you sure I am not supposed to change the 23.05 at the end configuration.nix to 23.11?

[paul@nixos:~]$ cat /etc/issue

<<< Welcome to NixOS 23.05.5533.70bdadeb94ff (\m) - \l >>>

Run 'nixos-help' for the NixOS manual.

BTW: I don’t use flakes.

My configuration.nix files finish with:

  system.stateVersion = "21.11"; # Did you read the comment?

  nix = {
    package = pkgs.nixFlakes;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
  };

So… hum… I may have activated flakes… but barely knows how it works yet.

Also 21.11 seems quite old… but indeed I am upgrading this disk for a long time.

What does sudo nix-channel --list (note the sudo) return?

2 Likes
paul@nixos:~]$ nix-channel --list
nixos https://nixos.org/channels/nixos-23.11

[paul@nixos:~]$

Channels never get old, man. They’re per-user, so you need to check sudo nix-channel --list if you do the build with sudo.

You was right.
sudo nix-channel --list was showing nixos-23.05, while without sudo, was showing nixos-23.11.

Did nix-channel --remove nixos, then nix-channel --add [url] nixos, then nix-channel --update.

Now have a new problem while updating… but I did open a new thread for it.