Open clayt0nk opened 1 year ago
Unless maybe the command you included is truncated, it doesn't look like you're naming the channel you're adding. Try: nix-channel --add https://channels.nixos.org/nixos-22.11 nixos
Your right, I wasn't. Apparently that name field is optional, and if not present it uses the last part of the URL -- in the above case, nixos-22.11 -- as the channel name in the list. So I did remove the channel, and replaced it with an entry named "nixos" exactly as you suggested, and there is no change in behavior, I get the same list of errors in response to a nixos-rebuild
It should be named nixpkgs
actually because you are trying to import <nixpkgs/nixos>
, think of those imports like C++ imports.
That last got me through the goal posts, thanks to both of you for your assistance! With two successful channel upgrades in the bag, I might have to add a 2nd machine to my NixOS herd. ;-) So for the record, my channel now looks like this nixpkgs https://channels.nixos.org/nixos-23.05
and that works. From where I sit, it seems that the importance of the channel name is not reflected in the --help
text for the nix-channel
command, for instance. Should documentation be improved?
Attempted upgrade to 23.05 by updating the channel, failed, now I revert the channel to the existing system state of 22.11 and nixos-rebuild is now broken:
526 nix-channel --add https://channels.nixos.org/nixos-22.11 527 nix-channel --update 528 nixos-rebuild --upgrade switch
I would expect restoring the channel and updating would restore build environment to sanity? This is not happening.....
nix-env --version
outputnix-env (Nix) 2.11.1