From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8d3MDD+jkGJFSAEAbAwnHQ (envelope-from ) for ; Fri, 27 May 2022 12:09:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mDCQCz+jkGKKHAAAauVa8A (envelope-from ) for ; Fri, 27 May 2022 12:09:03 +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 7462DDD69 for ; Fri, 27 May 2022 12:09:02 +0200 (CEST) Received: from localhost ([::1]:53252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuWtx-0006lX-Hs for larch@yhetil.org; Fri, 27 May 2022 06:09:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuWpM-0003CA-5c for help-guix@gnu.org; Fri, 27 May 2022 06:04:17 -0400 Received: from ns13.heimat.it ([46.4.214.66]:52694) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuWpJ-0000r4-Tf for help-guix@gnu.org; Fri, 27 May 2022 06:04:15 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 983D7300F9C; Fri, 27 May 2022 10:04:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hynzYwJ-g0Mv; Fri, 27 May 2022 10:03:50 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id A1FCD300F71; Fri, 27 May 2022 10:03:50 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id F142E1B0C53A; Fri, 27 May 2022 12:03:49 +0200 (CEST) Received: (nullmailer pid 11816 invoked by uid 1000); Fri, 27 May 2022 10:03:49 -0000 From: Giovanni Biscuolo To: kiasoc5@disroot.org, help-guix@gnu.org Subject: Re: How to install guix system from existing linux with guix package manager? In-Reply-To: <45a3b0f65ad8a06985a6ae12289136da21c03dee@disroot.org> Organization: Xelera.eu References: <45a3b0f65ad8a06985a6ae12289136da21c03dee@disroot.org> Date: Fri, 27 May 2022 12:03:48 +0200 Message-ID: <87czfzqol7.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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=1653646142; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=aMsHQeH0nbdpjaiSGqljakDygt2qowQvOtiZI+rYsJ0=; b=dqM16HuNt/9DL+kSejuK5k9RgZIekFrN+EfYOrmumGUxZCaKz3kSAtNUIM/tRV/EH3r/HJ XP3O4tuowTWsEv4ToW98UP0Ijyq4f/YrpM+qeoQCCfYyGnVfExHvOJZcmEKrwfsY66Pxrr sUUlI8d9ZA97m0I3Ny5NkMJxYsU9GSBDCBG8sTlun3Csm5BQ+lKPZVqoVEUDJLilYnAYRg U2avtGB23L7lJ73Vnfra1XS+26tXsjohWhzfni0YnEacUhjFiOiyV3CKVzO01Oi5Ebsqgv UutGZViXlf744o6F6w/yqmx3C0NPLt7ipfmd3HR/vA3Fx6yfyqCk1Ca4cfO6DQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653646142; a=rsa-sha256; cv=none; b=gUsokbZy9W4XlC+yC2Pjlg1kznsVC8E32Il+R9P98zaeRYq354Nrbn+/cKwQKd7d8supld 9fBzaGm6puggoYJxgzUSQuVIeUvEcSqIl0iKmGGXMVV/2TKZEnFoCIPACZ7MLAYphskzEa JwuDXTPFGyoAVfzUDI9eLQh17jCz/b07rT6NkFtNfbF9Mz8P39TgdY1RFwBgdYhYjEvCd0 G+z8z8G9QOIo+13ytfWNb59pIFQVMtRMFgvKbncSM8SI3vNogmsVvPWEDy2T53F+FuNFoU 9TvWX1YIjoPaVyFTGIzgcHp/SxgGYbBJ+oEcfJkuq8Kfs79TUVmL4MxOPQs2Bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -3.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 7462DDD69 X-Spam-Score: -3.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: HYbqerXdps9l --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello kiasoc5, IMHO what you are trying to do is an interesting path to... ascension :-) 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. kiasoc5@disroot.org writes: [...] > @guix-root is mounted on / on guix system > @gnu-store is mounted on /gnu/store on guix system and shared between > arch and guix > @home is mounted on /home and shared between arch and guix > > So I think the steps are as follows: > 0. backup data (just in case) Also backup /var/guix so you should be able to restore a working Guix status (with working I mean in your current foreign distro) > 1. move /gnu/store to subvolume > 2. install Guix system manually with the following file systems: > > (mapped-devices > (list (mapped-device > (source (uuid "my-uuid")) > (target "cryptroot") > (type luks-device-mapping)))) > > (file-systems (append > (list (file-system [...] > %base-file-systems)) In your snippet config you missed to mount /home ;-) (you also need to configure GRUB for dual boot, but I guess you know) > 3. configure uefi to boot guix grub by default > > WDYT? any tips/suggestions? 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...) 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 distro and the Guix System [1]. This is the most critical part about being able to share Guix between two different host operating systems. 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 it for GRUB configuration, but if you decide to keep using arch this is a good tip: https://yhetil.org/guix/20181031125428.GA814@doom/ There's nothing else it comes to my mind now regarding this "migrate and share path" AFAIU with the above caveats, you should be able to "share Guix" between the two systems in dual boot. Please let me know your progresses, I'm interested! Happy Hacking! Gio' =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmKQogUMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSylAP/jy2EAIW7mMnoe01Xmd8WA859XZO6bdOSiA7SUmt 5oVr+L6KMtbV+ReyZ9Y0ajEThsS6d22kHsgXDtPkZ2qntikf39vJ5Krc6uRHGPIq U3jAQlpkt1e2fvm8xfrVly7kIsk6bZcOoQ1gJlRRxu+uyVvFUL6uBAq8KuDIv6AM 89JFZN4GkeIs26yudE3JMdSCBCN1+HEHTEKtxHbaqfjK1YuHmhBzvtPgP0TPHPna 6l6XvHMdcJ80ABegY3jSrjVGdRqXZy+FMfGPdGcFAPmqifrTqheaPSnNqAczuh1T k5slQu2eD+r3M0luMVfCFWkMR5hSGPNK6KRS7E9Lk9JIYkBVcxS9lTtuwqO6H3NS UMq4hy98fBKpsnzJbyvQATZo8HIcldkK4UtZnk8zjOcBfq4hUL2P9EXFyA7tEip0 ml1GdWC3DnYEKxHeIpIo+FLsJQZ0LIH/Wo5WZos+N5REzrx91+QJrBuHzFVu4lqN 9M9yuGZhqGC47GuCIvhMNBLzNPX25MslMc9jPufPa/D3BiVMd9rjxzfYauczVc6H rke/H4zSvK7eD/Wp1O4ty3lE4OuOzMqPLEnCO2YBNusbLyE0Ck3jsXMuJ8ksIBlx nxMZPz/ySZt6KD/ZG1CxD3MgMcPiD5ZQ5zTVAE3qyCnd+TTEIOf5xvBMUyUcOG4e wO8r =Pw4K -----END PGP SIGNATURE----- --=-=-=--