From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Seeking guidance regarding system roll-back and switch-generation Date: Sun, 17 Jul 2016 17:27:15 +0200 Message-ID: <93df5c106c7e10c24687ee355b972f72@tobias.gr> References: <87twfo7h5v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOnyb-0001jk-7P for guix-devel@gnu.org; Sun, 17 Jul 2016 11:27:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOnyR-0004iB-IS for guix-devel@gnu.org; Sun, 17 Jul 2016 11:27:28 -0400 In-Reply-To: <87twfo7h5v.fsf@gmail.com> 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: Chris Marusich Cc: guix-devel@gnu.org Ahoy Chris, Just one aside, for context: (And to softly nudge people into the rightâ„¢ direction of activation scripts, of course. ;-) 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. That no-one has bothered to script a solution probably means something. Kind regards, T G-R