Installing home manager

I have watched many videos and read many articles concerning getting home manger working on NIXOS. I am also following the guide in the manual.
Below is the output from Konsole:

[dennis@nixos:~]$ nix-channel --add home-manager

[dennis@nixos:~]$ nix-channel --update
this derivation will be built:
building ‘/nix/store/2csvvl1kz68j24darfj0wb0wj8ak40jc-master.tar.gz.drv’…
error: unable to download ‘’: HTTP error 404 (’’)

   response body:

   Not Found

[dennis@nixos:~]$ ^C


I used the command for NIXOS 22.05. Maybe I should have used the command for the unstable channel? Actually, I have used both, but the output is the same.
Any hints would be great. Thanks in advance.


Given that it 404’d my first thought is that the url is slightly wrong.

As for channel, it’s important that you match your nixpkgs channel. If you use nixpkgs branch nixos-unstable, you should use home-manager master. But if you use nixpkgs branch nixos-22.05 you should use home-manager release-22.05 like you did.

Also, there’s a common newbie trap here that’s worth mentioning: different users have their own channels, with root’s channels available to everyone. If you want to use home-manager as a nixos module, you’ll need it to be in root’s channels, not your user’s, so make sure to run your nix-channel commands with sudo. If you want to use it standalone, it can be in either place, though of course if it’s in root’s channels, you’ll need sudo to update it.

The home-manager manual only denotes this difference by the character at the start of the listed commands. $ for normal user commands, and # for root commands. It’s easy to miss.

Thanks so much for your advice. I’ll look into your suggestions and let you know.

I used suso su -
then ran the 22.05 command, and all worked well.

Again. thanks for you help.