From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cB6QDql+kmLHZgEAbAwnHQ (envelope-from ) for ; Sat, 28 May 2022 21:57:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AEmFDql+kmIQRwAA9RJhRA (envelope-from ) for ; Sat, 28 May 2022 21:57:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D41B73792B for ; Sat, 28 May 2022 21:57:28 +0200 (CEST) Received: from localhost ([::1]:52196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nv2Yx-0004GL-DH for larch@yhetil.org; Sat, 28 May 2022 15:57:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nv2YY-0004Fy-Pb for help-guix@gnu.org; Sat, 28 May 2022 15:57:03 -0400 Received: from knopi.disroot.org ([178.21.23.139]:34096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nv2YW-0006rX-Jh for help-guix@gnu.org; Sat, 28 May 2022 15:57:02 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6CB59438CB; Sat, 28 May 2022 21:56:57 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ym0YHG8iWNH1; Sat, 28 May 2022 21:56:55 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1653767815; bh=t072WkP9XeRSxdTYNKe30oa+GCK2BPVJJlD8mope2uY=; h=Date:From:Subject:To:References; b=bxV2rOLv9Z7R3YV3of28dVzXE0NGSJ7dNrcF9YWijz737mo9GPzF11o0+kqU+nVEg 5dRBDc3f1jMgE9cnUYLMPuwzR+rJKXQGX8VC/nTdRHhIis6mVd2MkJYjALzf//NhLO pHXK74tAlRIUIYxB2sLfDZ08hDImtOcSAqyTnf8q0EWJ67z3aezmvmhFIPobucxwku ztlL2HSznD5SbZtCKMaM65z+6alm1VG19RlO/ML9j13BxpwaGgv+QrwGY5ZDAr7pfT iOVHNpRVfbsgnbITmuv+1xHT4G4Cqj0A3iMK4/9QScnPuQ8nJ16XaXDx5uK/GToUH2 xwA8Xc+AJlx/Q== Date: Sat, 28 May 2022 19:56:55 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: kiasoc5@disroot.org Message-ID: <49e9b7842da4af85f8608c95929c605d46c0c5a1@disroot.org> Subject: Re: How to install guix system from existing linux with guix package manager? To: "Giovanni Biscuolo" , help-guix@gnu.org References: undefined <45a3b0f65ad8a06985a6ae12289136da21c03dee@disroot.org> <87czfzqol7.fsf@xelera.eu> Received-SPF: pass client-ip=178.21.23.139; envelope-from=kiasoc5@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653767849; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=t072WkP9XeRSxdTYNKe30oa+GCK2BPVJJlD8mope2uY=; b=V5x4y422V+rW7X93b1jOo8r1QRfyOQlj0qB5/ZaoFOW7G0qdB16FBrbCZVjr+Kn2vx2IU/ mfoXcBw85YeZmbTmtTFpnCgiJoh4UVLYSI0f+/IcZ5x9GK+gxpTAZMahu/81hDGAQEQknH 9jHTeBC5vDhfrd4nyPV8JoGvWs9WouuTaHYEffpjIq9oC5VtKDqOebamBVJxp9OyC8bAkI pgc3IU7NKOz/3YblBb9UYtu0aBDja3GID4OHr14ZWsDvfHO3fuiqwV6m3LIKPbrEfh/oqz +HGyUcovuU+1rDnXQrliTsbl1SzLi9vMdUhikmqERLk61XyNjRxZVeC3yPg3SQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653767849; a=rsa-sha256; cv=none; b=VWygfPXTkKGBF/1nwbBhRrN3mADEdwgj8qBP5gwJAZQD84F5yfKH29Ms6lZdViyOQHzTQ9 hmHQ7IAFr4NbWVfeELooPZNyV9hkEap+GNIZNyQsXOFr7N0ahGKFoY3PTbJNMmKpaJg4vt sv0gUhefwc++5c5ynH74x6etpdXBU23tqkqkZrMx+3WkAVEYEJwuPKUwgtoL5dRMgVoAwQ M/99mAj42bjEuTgR6FCwwhSHBZOIxGXtzwem/5pbO4JL16e7RytPqKAuMP4pgDZkzWX6VS mmxoT/9AxvpxbZ+m+jRDAZWejXuoY1x0PH8Vvcn2pBS1wi+i8d0WnAiuCGthlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=bxV2rOLv; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=bxV2rOLv; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D41B73792B X-Spam-Score: -7.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8N3TgwVC5nMl Hi Giovanni, May 27, 2022, 10:06 AM, "Giovanni Biscuolo" wrote: > IMHO what you are trying to do is an interesting path to... ascension Ascension, that's a great way to put it! > For my desktop and laptop I'm still using Guix on top of a foreign > distro (Debian) because... I'm conservative :-D, so I'd very much like > to have a way to try to slowly switch to Guix System with the "safety > net" to be able to boot my current system if I'm in trouble; this way > also I can spare some cash avoiding to buy a new dedicated machine for > this experiments. >=20 I=20plan to try it out in a VM first. The new Arch installer sets up btrf= s subvolumes automatically so it will be good for testing. > I never tried this, but beware that the UID and GID of user(s) in > your new Guix System sould be the very same of the arch system to be > able to access homes, /including/ Guix profiles of users (stored in > /home/$USER...) Yes, I believe most Linuxes set the first created user to a UID and GID o= f 1000, so hopefully this is not an issue. > Important: if you want to be able to share the store between the two > systems you should also share the /status/ of Guix, stored in > LOCALSTATEDIR/guix/ (usually /var/guix), since it contains a lot of > useful data and AFAIU it must be kept in sync between the foreign distr= o > and the Guix System [1]. This is the most critical part about being > able to share Guix between two different host operating systems. Should I make /var/guix a subvolume as well? ALso the only directory in /gnu is /gnu/store right? So I could just have= an @gnu subvolume mounted on /gnu instead of a @gnu-store subvolume moun= ted on /gnu/store? > Last but not least, once you have installed Guix System you have to > decide what manages your GRUB configuraton: Guix System or arch, you > cannot share the grub config between the two; Guix System have a > stateless GRUB config (and it' good and fair) so I suggest you to use i= t > for GRUB configuration, but if you decide to keep using arch this is a > good tip: https://yhetil.org/guix/20181031125428.GA814@doom/ Thanks for the tip. What if I install another bootloader on Arch like sys= temd boot? Then there will not be a bootloader conflict and I can select = one with efibootmgr. May 28, 2022, 10:51 AM, "Giovanni Biscuolo" wrote: > Actually I'm using a shared store AND "LOCALSTATEDIR/guix/" (usually > /var/guix) between my host OS and all my LXC containers, it's something > I learned by adapting Ludo' and Ricardo notes on installing Guix on a > cluster; please see this message (it was Feb 2019, I forgot I wrote > that) for details and pointers to the relevant documentation: >=20 >=20https://yhetil.org/guix/87h8d8dl6d.fsf@roquette.mug.biscuolo.net/ >=20 >=20In your case the "store and state sharing" systems are not running an= d > at the same time like on a cluster, but from a systemistic point of vie= w > it's (almost) the same thing some of us are already doing in their > setup. Interesting, this does have some parallels. > As a side note, you could also consider to switch to Guix System and > keep your foreign distro running as an LXC container sharing store and > state with the host, but you have to be familiar with LXC tooling [1] > AND know how to "convert" a "physical" machine to an LXC container [2], > giving the guests acces to the host GPU [3] for graphical applications > or using remote dektop applications like SPICE or VNC... it's a little > bit complex but pure fun! Would an LXC approach require two graphics cards? I only have an integrat= ed GPU. Thanks, kiasoc5