NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.75k stars 1.52k forks source link

Named nix-env profile generations? #1255

Open copumpkin opened 7 years ago

copumpkin commented 7 years ago

The nix-env --list-generations command is kind of cool, but doesn't actually tell you very much other than a date and a number. It'd be nice if we could associate at least a name (and ideally arbitrary other structured metadata, possibly as JSON) with a profile generation. My main use case around this is for nixos-rebuild and the system generation, but I'm sure folks would find uses for it around their user generations too.

edolstra commented 7 years ago

As an aside: could you tag issues with the appropriate labels (e.g. "feature")?

copumpkin commented 7 years ago

I'd love to but have no powers to do so 😄 I always assumed you wanted to keep this repo far more locked down than nixpkgs so never bothered asking.

Ninlives commented 6 years ago

Sorry for bothering, is this feature being realized?

bew commented 5 years ago

I was thinking about that today, maybe we could have a file in the generation folder with a message (or a json payload, with a message + date + other metadatas)

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

bew commented 3 years ago

I marked this as stale due to inactivity. → More info

This is a new comment

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

NoraCodes commented 2 years ago

I would really appreciate this. I use a Git repo to manage my Nix configs, and my ideal scenario would be to associate Git commit hashes with Nix generations. If there was an easy way to name a generation based on the result of a shell command, that would be amazing.