System version is still 24.11 after channel update and upgrade

Hi.
I just upgraded my channel and system to 25.05, but when I nixos-version it still says 24.11.

Is my system actually upgraded?

May be the same problem I had. See my post to see if it fits

Wdym, “channel and system”?

And is your configuration actually using channels or are you using flakes?

I see. so I need to update the sudo’s channel in order to upgrade; however, when I perform

sudo nix-channel --remove nixos
sudo nix-channel --add https://nixos.org/channels/nixos-25.05 nixos
sudo nix-channel --update
sudo nixos-rebuild --upgrade boot

It says the following error

error:
       … while calling the 'head' builtin
         at /nix/store/d0gkkdlqbd27j94malk85bqi1qircfia-nixos-25.05/nixos/lib/attrsets.nix:1534:13:
         1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1534|             head values
             |             ^
         1535|           else

       … while evaluating the attribute 'value'
         at /nix/store/d0gkkdlqbd27j94malk85bqi1qircfia-nixos-25.05/nixos/lib/modules.nix:1084:7:
         1083|     // {
         1084|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1085|       inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/d0gkkdlqbd27j94malk85bqi1qircfia-nixos-25.05/nixos/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/store/d0gkkdlqbd27j94malk85bqi1qircfia-nixos-25.05/nixos/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts.etc.text':

       … while evaluating definitions from `/nix/store/d0gkkdlqbd27j94malk85bqi1qircfia-nixos-25.05/nixos/nixos/modules/system/etc/etc-activation.nix':

       … while evaluating definitions from `/nix/store/d0gkkdlqbd27j94malk85bqi1qircfia-nixos-25.05/nixos/nixos/modules/system/etc/etc.nix':

       … while evaluating the option `environment.etc.dbus-1.source':

       … while evaluating the option `environment.systemPackages':

       … while evaluating definitions from `/etc/nixos/configuration.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: 'rocm-thunk' has been removed. It's now part of the ROCm runtime.

Here is my configuration.nix

{ config, pkgs, lib, nix, ...}:

{
  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
    ];

  # Bootloader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  # Use newest linux kernel
  boot.kernelPackages = pkgs.linuxPackages_latest;

  networking.hostName = "nixos"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # Configure network proxy if necessary
  # networking.proxy.default = "http://user:password@proxy:port/";
  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

  # Enable NTFS support at boot
  boot.supportedFilesystems = [ "ntfs" ];

  # Enable networking
  networking.networkmanager.enable = true;

  # Set your time zone.
  time.timeZone = "Pacific/Auckland";

  # Select internationalisation properties.
  i18n.defaultLocale = "en_US.UTF-8";

  i18n.extraLocaleSettings = {
    LC_ADDRESS = "zh_CN.UTF-8";
    LC_IDENTIFICATION = "zh_CN.UTF-8";
    LC_MEASUREMENT = "zh_CN.UTF-8";
    LC_MONETARY = "zh_CN.UTF-8";
    LC_NAME = "zh_CN.UTF-8";
    LC_NUMERIC = "zh_CN.UTF-8";
    LC_PAPER = "zh_CN.UTF-8";
    LC_TELEPHONE = "zh_CN.UTF-8";
    LC_TIME = "zh_CN.UTF-8";
  };

  # Enable hardware graphics configuration
  hardware.graphics.enable = true;
  hardware.graphics.enable32Bit = true;
  hardware.graphics.extraPackages = with pkgs; [rocmPackages.clr.icd];

  boot.initrd.kernelModules = [ "amdgpu" ];
  services.xserver.videoDrivers = [ "amdgpu" ];
  services.xserver.enable = true;
  services.displayManager.sddm.enable = true;
  services.displayManager.sddm.wayland.enable = true;
  services.desktopManager.plasma6.enable = true;
  services.displayManager.defaultSession = "plasma";

  # Configure keymap in X11
  services.xserver.xkb = {
    layout = "us";
    variant = "";
  };

  # Enable CUPS to print documents.
  services.printing.enable = true;

  # Enable sound with pipewire.
  services.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    jack.enable = true;
  };


  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.users.sherlockxia = {
    isNormalUser = true;
    description = "SherlockXia";
    extraGroups = [ "networkmanager" "wheel" ];
  };

  # Enable automatic login for the user.
  services.displayManager.autoLogin.enable = true;
  services.displayManager.autoLogin.user = "sherlockxia";

  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;

  # Enable rocmSupport
  nixpkgs.config.rocmSupport = true;

  # Change Nix channels
  # system.autoUpgrade.channel = "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/nixos-24.11";

  # Change binaryCaches mirror
  # nix.settings.trusted-substituters = lib.mkForce ["https://mirror.sjtu.edu.cn/nix-channels/store"];

  # List packages installed in system profile. To search, run:
  # $ nix search wget

  # Setup fcitx5
  i18n.inputMethod = {
      type = "fcitx5";
      enable = true;
      fcitx5 = {
      waylandFrontend = true;
      plasma6Support = true;
      addons = with pkgs; [
        fcitx5-chinese-addons
        fcitx5-pinyin-zhwiki
        fcitx5-configtool
        rime-data
        libpinyin
        librime
      ];
      };
  };

  # Install extra fonts
  fonts.packages = with pkgs; [
    noto-fonts
    noto-fonts-cjk-sans
    noto-fonts-cjk-serif
    nerdfonts
  ];

  environment.systemPackages = with pkgs; [
    # Necessary AMD programs
    rocmPackages.rocm-smi
    rocmPackages.rocm-core
    rocmPackages.rocm-runtime
    rocmPackages.rocm-device-libs
    rocmPackages.rocm-thunk
    rocmPackages.rocminfo
    rocmPackages.clr.icd
    radeontop
    radeontools
    # Necessary system optimization packages
    nil
    clinfo
    gamemode
    gamescope
    steam
    steam-run
    firefox
    openssh
    unrar
    freetype
    fontconfig
    # Additional Terminal packages
    ntfs3g
    ffmpeg_6
    imagemagick
    fastfetch
    neovim
    tmux
    wget
    cmus
    btop
    btop-rocm
    fd
    lf
    fzf
    zoxide
    bat
    delta
    glow
    tealdeer
    tldr
    gdb
    mc
    git
    # Additional KDE packages
    kdePackages.kate
    kdePackages.yakuake
    kdePackages.kdevelop
    kdePackages.kdenlive
    kdePackages.partitionmanager
    kdePackages.plasma-browser-integration
    # Additional packages
    mediainfo
    mediainfo-gui
    obs-studio
    tor-browser
    furmark
    mpv
    vlc
    libreoffice
    blender-hip
    gimp
    krita
    qbittorrent
    gnucash
    calibre
    calibre-web
    godot_4
    rsync
    bsync
    focuswriter
    #Digital Audio Production tools
    audacity
    ardour
    musescore
    hydrogen
    #DAW plugins
    ocamlPackages.alsa
    surge-XT
    lsp-plugins
    dexed
    # Gaming Support
    ruffle
    nwjs
    #Pennetration testing tools
    wireshark
    sherlock
    aircrack-ng
    metasploit
    thc-hydra
    burpsuite
    nmap
    sqlmap
    social-engineer-toolkit
    #Programming
    python312
    python312Packages.requests
    python312Packages.grequests
  ];

  # Enable musnix support


  # Configure shell aliases
   environment.shellAliases = {
    clean = "sudo nix-collect-garbage -d";
    switch = "sudo nixos-rebuild switch";
    upgrade = "sudo nixos-rebuild switch --upgrade";
    generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
  };

  # Some programs need SUID wrappers, can be configured further or are started in user sessions.
   programs.mtr.enable = true;
   programs.gnupg.agent = {
     enable = true;
     enableSSHSupport = true;
   };

  # List services that you want to enable:
  # Enable flakes permanently in NixOS
    nix.settings.experimental-features = [ "nix-command" "flakes" ];


  # Enable the OpenSSH daemon.
  services.openssh.enable = true;

  # Open ports in the firewall.
  # networking.firewall.allowedTCPPorts = [ ... ];
  # networking.firewall.allowedUDPPorts = [ ... ];
  # Or disable the firewall altogether.
  # networking.firewall.enable = false;

}

Have you considered removing the package that it tells you in the error doesn’t exist?

Yep that fixed it.

Sorry I should have tried that before asking but thanks.

Also it says nerd fonts now must be specified which one to install. Which is an easy fix.

Thanks guys.

See you in nixos 25.05

Just a quick summary.

  1. change and update your sudo’s channel
sudo nix-channel --remove nixos
sudo nix-channel --add https://nixos.org/channels/nixos-25.05 nixos
sudo nix-channel --update
sudo nixos-rebuild --upgrade boot
  1. Fix all errors from running
sudo nixos-rebuild --upgrade boot