Upgrading nix channel version on other OS?

I’ve got Nix package manager installed on a Fedora machine, I thought it was up to date but I’m trying to install home manager.

If I run nix-channel --list I get

home-manager https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz
stbpkgs https://nixos.org/channels/nixos-24.05

I’ve run:

nix-channel --update
nix-env -u '*'

But when I install home-manager with nix-shell '<home-manager>' -A install it errors with:

Creating initial Home Manager generation...

trace: warning: You are using

  Home Manager version 24.05 and
  Nixpkgs version 23.11.

Using mismatched versions is likely to cause errors and unexpected
behavior. It is therefore highly recommended to use a release of Home
Manager that corresponds with your chosen release of Nixpkgs.

Where is it getting Nixpkgs 23.11 from? How can I upgrade that?

It’s quite difficult to search for examples of doing this as they assume running NixOS rather than just the package manager.

Home-manger is for nixpkgs, but you only have stbpkgs.
Try removing the stbpkgs channel and adding nixpkgs:

nix-channel --remove stbpkgs
nix-channel --add https://nixos.org/channels/nixos-24.05 nixpkgs
nix-channel --update

Try sudo nix-channel --list and see what (if any) channels it has, maybe home manger is falling back to those?