Trying to upgrade NixOS to unstable channel and install Home Manager

Hello there, I wanted to test Home Manager, and started to follow this guide: My NixOS Journey - Home Manager

The guide follows an old stable build of NixOS but I want to do this on unstable channel. However after I done everything on that blog (also changing 22.11 to 23.05 whenever it shows up) I got to this error:

sudo nixos-rebuild switch

unpacking channels...
building Nix...
building the system configuration...
error: Invalid package attribute path 'qt6Packages qt6ct'
(use '--show-trace' to show detailed location information)

Can anybody help me with that?

Your home manager channel has to match up with the Nixos release, which seems to be not the case for your setup at the moment. See this issue as additional context bug: Unable to switch configurations due to attribute 'qt6Packages qt6ct' · Issue #4097 · nix-community/home-manager · GitHub

Likely the HM channel does follow master, instead the release 23.05

1 Like

That did it, after you told me where the problem might be, I checked my mistakes and realized that I entered # nix-channel --add https://channels.nixos.org/nixos-unstable unstable rather than # nix-channel --add https://channels.nixos.org/nixos-unstable nixos after the channel update command that fixed itself, thank you!