Is it possible to somehow access the system.stateVersion variable from within a nix-shell profile expression?
I would like to use a package dependent on it.
I tried (import (pkgs.path + /config) { configuration = {}; }).config.system.stateVersion, but it does not return the version defined in my system config (21.5), but returns a later version instead (21.11).