I’d like to determine the system nixpkgs channel version on a machine on which I am a lowly non-sudo user. How does one accomplish this?
My usual go-to is sudo nix-channel --list
but obviously this does not work. nix-info
isn’t giving me any insight either:
- system: `"x86_64-linux"`
- host os: `Linux 5.4.0-150-generic, Ubuntu, 20.04.6 LTS (Focal Fossa), nobuild`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.13.3`
- channels(samuelainsworth): `"home-manager-22.11.tar.gz"`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
How do I figure out which channel it’s tracking and, ideally, the current commit or hash of that channel?