Re: [Nix-dev] Gratuitous generations

2015-03-31 Thread phreedom
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

Re: [Nix-dev] Gratuitous generations

2015-03-31 Thread Ryan Trinkle
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, phree...@yandex.ru wrote: On Monday, March 30, 2015 16:16:36 Ryan Trinkle wrote: Ah, great point! This line worked perfectly for me:

[Nix-dev] Gratuitous generations

2015-03-30 Thread Christian Theune
Hi, last year I experimented with self-managing NixOS installations. One thing that I stumbled upon was that regularly triggering nixos-rebuild would create new generations even though the config hadn’t changed. Is there a way to suppress that or a reason why this can’t be suppressed in

Re: [Nix-dev] Gratuitous generations

2015-03-30 Thread Eelco Dolstra
Hi, On 30/03/15 14:45, Christian Theune wrote: last year I experimented with self-managing NixOS installations. One thing that I stumbled upon was that regularly triggering nixos-rebuild would create new generations even though the config hadn’t changed. Is there a way to suppress that or

Re: [Nix-dev] Gratuitous generations

2015-03-30 Thread Christian Theune
Hi, On 30 Mar 2015, at 15:07, Eelco Dolstra eelco.dols...@logicblox.com wrote: The reason is to ensure that nixos-rebuild switch; nixos-rebuild rollback always rolls back to the configuration just before the switch, not to some earlier configuration. If nixos-rebuild switch is a logical

Re: [Nix-dev] Gratuitous generations

2015-03-30 Thread Ryan Trinkle
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). Ryan On Mon, Mar 30,

Re: [Nix-dev] Gratuitous generations

2015-03-30 Thread Ryan Trinkle
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 7c6f4...@mail.ru wrote: On Mon, Mar 30, 2015 at 9:47 PM, Ryan Trinkle ryan.trin...@gmail.com

Re: [Nix-dev] Gratuitous generations

2015-03-30 Thread Ryan Trinkle
That sounds awesome; thanks! On Mon, Mar 30, 2015 at 3:51 PM, Nicolas Pierron nicolas.b.pier...@gmail.com wrote: Hi Ryan, On Mon, Mar 30, 2015 at 9:47 PM, Ryan Trinkle ryan.trin...@gmail.com wrote: On a somewhat related note, is there any way to see the exact configuration.nix for a

Re: [Nix-dev] Gratuitous generations

2015-03-30 Thread Nicolas Pierron
Hi Ryan, On Mon, Mar 30, 2015 at 9:47 PM, Ryan Trinkle ryan.trin...@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

Re: [Nix-dev] Gratuitous generations

2015-03-30 Thread Michael Raskin
On Mon, Mar 30, 2015 at 9:47 PM, Ryan Trinkle ryan.trin...@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