On 16/05/17 17:43, zimbatm wrote: > How do you find back which git revision was used to produce a given > NixOS profile? > > Maybe nixos-rebuild should be extended to include that in the revision > name, and if the git repo is dirty.
I'm planning to implement the reverse approach on my system: have some sort of rebuild hook commit the state of the repo to a separate branch and include useful information (nixpkgs version, derivation hash of the resulting system) in the commit message. This allows greater reproducibility and provides far more helpful information (a snapshot of the full config) than simply "repo was dirty". I'll reply if/when I get this working. Linus _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev