[Nix-dev] Gratuitous generations

Ryan Trinkle ryan.trinkle at gmail.com
Mon Mar 30 22:16:36 CEST 2015


Ah, great point!  This line worked perfectly for me:

environment.etc."nixos/current/configuration.nix".text = builtins.readFile
./configuration.nix;


On Mon, Mar 30, 2015 at 4:10 PM, Michael Raskin <7c6f434c at mail.ru> wrote:

> >On Mon, Mar 30, 2015 at 9:47 PM, Ryan Trinkle <ryan.trinkle at gmail.com>
> wrote:
> >> On a somewhat related note, is there any way to see the exact
> >> configuration.nix for a particular generation?  It would be great to be
> able
> >> to diff generations against each other (e.g.: to figure out whether a
> >> channel update caused a problem or whether it was my own change).
> >
> >You are not the first one to request this feature.
> >They are a few issues in the way, but I will open an issue and do it
> >as soon as I am done with the httpd rewrite.
>
> In the meantime just adding /etc/ entry that is a copy of
> /etc/nixos/configuration.nix should work…
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150330/28e32d02/attachment.html 


More information about the nix-dev mailing list