This seemed to happen out of nowhere, but I simply ran:
[nprevail@nixos:~]$ sudo nixos-rebuild switch --upgrade
and then the output was this:
unpacking 2 channels...
nix-channel: error while loading shared libraries: libxml2.so.16: cannot open s
hared object file: No such file or directory
nix-instantiate: error while loading shared libraries: libxml2.so.16: cannot op
en shared object file: No such file or directory
building the system configuration...
nix-build: error while loading shared libraries: libxml2.so.16: cannot open sha
red object file: No such file or directory
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-o
ut-link' returned non-zero exit status 127.
```
My channels are the following:
[nprevail@nixos:~]$ sudo nix-channel --list
[sudo] password for nprevail:
nixos https://nixos.org/channels/nixos-25.11
unstable https://nixos.org/channels/nixos-unstable
Any ideas?