How do I access the revision for “self” in a flake?
I want to extend
system.nixos.label to include the git hash of the repo that it was built from, which doesn’t seem to be a thing by default (or am I missing something? I thought maybe there was some sort of support for getting “Back to the flake” from a system toplevel, but I can’t find that now.)
It seems like
inputs.self.sourceInfo looks like this, and lacks the rev info (and this seems to be the same for different inputs too, that are locked from git repos). I was sure that there’s some way to get to this, right? Maybe I’ve previously accessed it through flake-compat since it parses the lock file?