From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [Sharing store/state between Nix and Guix]: How stable is it? Date: Wed, 08 Feb 2017 17:05:18 +0100 Message-ID: <871sv8ekht.fsf@elephly.net> References: <20170207055044.GB6888@mail.thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbUkM-0005V6-Kx for guix-devel@gnu.org; Wed, 08 Feb 2017 11:05:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbUkJ-0005Fa-8i for guix-devel@gnu.org; Wed, 08 Feb 2017 11:05:30 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbUkJ-0005FC-2J for guix-devel@gnu.org; Wed, 08 Feb 2017 11:05:27 -0500 In-reply-to: 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: rohit yadav Cc: guix-devel@gnu.org rohit yadav writes: > On Mon, Feb 6, 2017 at 11:50 PM, Pjotr Prins > wrote: > >> On Mon, Feb 06, 2017 at 04:14:04PM -0600, rohit yadav wrote: >> > Hi, >> > Is there anyone who has experimented with above mentioned idea? In >> theory >> > it may be possible, I am just wondering how stable is it? Assuming, I >> > installed a package with guix, it should change the database, create >> a new >> > profile. As long as ~/.nix-profile or ~/.guix-profile points to >> current >> > profile I should see the changes in list of packages in the current >> > generation. So, at higher level it should almost be indistinguishable >> > whether nix or guix is used to manage the profiles. >> >> Yes, it is perfectly safe and some people do that. Note that I would >> not *share* the DB and store - just have them separate and they >> coexist fine. >> > Actually my question was whether DB and Store can be shared. Guix and Nix > only changes the databases depending on what is installed and updating the > current generation. I don’t think there’s a practical advantage in sharing the store. The items will be different for the most part anyway so Guix cannot just use Nix store items. You might benefit from deduplication, but it might make more sense to do deduplication at the filesystem level. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net