(yes, I saw Sudo nixos-rebuild switch does nothing - #14 by nixy, not relevant)
a couple of weeks back, when running “sudo nixos-rebuild switch --upgrade”, I got the error message (no clue how I managed that)
error: reading symbolic link ‘/root/.local/state/nix/profiles/channels/nixos-unstable-small’: No such file or directory
Command exited with non-zero status 1
After a suggestion on Discord, I ran “sudo nix-channel --update”, and the error went away.
Since then, when I run “sudo nixos-rebuild switch --upgrade”, I get “unpacking channels…” and nothing else, when I know from the channel status page at https://status.nixos.org/ that I should be getting some updates.
Any suggestion? I don’t use flakes for my /etc/nixos/configuration.nix.
I am thinking of converting my configuration to flakes and try that. Then there is the nixos-rebuild shell script to go through.
$ nix-info -m
- system: `"x86_64-linux"`
- host os: `Linux 6.1.15, NixOS, 23.05 (Stoat), 23.05pre460365.3c5319ad3aa`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.14.1`
- channels(root): `"nixos, nixos-unstable-small"`
- channels(oo): `"nixpkgs"`
- nixpkgs: `/home/oo/.nix-defexpr/channels/nixpkgs`
$ nix --version -vv
nix (Nix) 2.14.1
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/oo/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/oo/.nix-profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/oo/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/n6vimgasfqxz4xbmbzyvh61llhrapya7-nix-2.14.1/share
$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-unstable-small