[Nix-dev] Gratuitous generations

Ryan Trinkle ryan.trinkle at gmail.com
Tue Mar 31 17:42:15 CEST 2015


Ah, I didn't know about that option!  That sounds good; where does it copy
it to, though?  It isn't clear to me from the docs.

On Tue, Mar 31, 2015 at 8:02 AM, <phreedom at yandex.ru> wrote:

> On Monday, March 30, 2015 16:16:36 Ryan Trinkle wrote:
> > Ah, great point!  This line worked perfectly for me:
> >
> > environment.etc."nixos/current/configuration.nix".text =
> builtins.readFile
> > ./configuration.nix;
>
> I have been using this option: system.copySystemConfiguration = true;
>
> Placing the current config "closer" to /etc/nixos/configuration.nix makes
> it
> easier to run diff against the active profile. copySystemConfiguration's
> location
> makes it easier to dig older profiles. Maybe it's a good idea to use both
> locations?
>
> > 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…
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150331/4a91cfe8/attachment.html 


More information about the nix-dev mailing list