From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Seeking guidance regarding system roll-back and switch-generation Date: Mon, 18 Jul 2016 14:39:39 +0200 Message-ID: <87shv7p1bo.fsf@gnu.org> References: <87twfo7h5v.fsf@gmail.com> <93df5c106c7e10c24687ee355b972f72@tobias.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP7pr-0006gT-BA for guix-devel@gnu.org; Mon, 18 Jul 2016 08:39:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP7pn-0004th-0j for guix-devel@gnu.org; Mon, 18 Jul 2016 08:39:46 -0400 In-Reply-To: <93df5c106c7e10c24687ee355b972f72@tobias.gr> (Tobias Geerinckx-Rice's message of "Sun, 17 Jul 2016 17:27:15 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tobias Geerinckx-Rice Cc: guix-devel@gnu.org Hello! Tobias Geerinckx-Rice skribis: > On 2016-07-17 11:22, Chris Marusich wrote: >> However, it may not be necessary to generate a >> "switch-to-configuration" >> script at all. Instead, what if we just stored the operating system >> configuration file in a well known location within each system >> generation? > > NixOS offers this option. I've forgot the name, because its utility is > so limited, and its main use is to confuse people on IRC. > > All it does is copy /etc/nixos/configuration.nix to the store. That's > it. All your imports are now broken, if they pointed to a relative path > that doesn't exist in the store, or impure, if they pointed to an > absolute > path that wasn't immutable. This breaks all but the most trivial (or > unmaintainable) set-ups. Even the NixOS installer creates a multi-file > configuration by default. I was about to make the same comment. To put it differently, the configuration.{scm,nix} file is not self-contained; its semantics are determined by the rest of Guix/Nix{pkgs,OS}. As such, it=E2=80=99s not very helpful to keep it alone. Thanks for your feedback, Ludo=E2=80=99.