Have you tried actually doing sudo nix-channel --update, rather than depending on nixos-rebuild --upgrade? nixos-rebuild --upgrade only affects root’s nixos channel, and I have no idea what it even does if you run it without sudo (say, with --use-remote-sudo).
As for why the code link seems to go to the wrong place, it’s because thunderbird reuses firefox’s wrapping code.
Also, it might be unrelated but make sure to actually close all the instances of thundebird : at some points I was upgrading chromium (even trying with flake) but it was apparently failing… in fact I had the good version installed (as I could check in the which command) but the issue was that it was detecting an old background chromium daemon, and it was just asking the daemon to spawn a new window… so the new window was running an old version.
# nixos-rebuild switch
building Nix...
building the system configuration...
activating the configuration...
setting up /etc...
reloading user units for gdm...
reloading user units for jakob...
setting up tmpfiles
# echo $?
0
Exactly the same output with --upgrade or after nix-channel --update.
Sorry if this is way off, but in all the examples you’re posing you’re doing nixos-rebuildwithoutsudo. Your example with nix-channel --list showed you do not have any channels with your logged in user, but you do with the root user. If you run sudo nixos-rebuild switch that will run it as the root user and find the correct channel the root user has configured.
Root’s channels are available to all users, so that shouldn’t be the issue. Also, given that the rebuild is succeeding, he must either be running it as root or with --use-remote-sudo, probably with an alias.
Oh man! 21.11 vs. 22.11 – I never noticed the difference!! Sorry everyone for the headache and thank you all for the help!
I installed both machines from an older USB stick And because the package search only shows channels 22.05 and 22.11, I always was sure that I’m on 22 .11.