From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 2IQfC9wxfGIWIgEAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 23:59:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YD1JCtwxfGIF3wAAG6o9tA (envelope-from ) for ; Wed, 11 May 2022 23:59:56 +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 714043909B for ; Wed, 11 May 2022 23:59:55 +0200 (CEST) Received: from localhost ([::1]:44976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nouN8-00040d-8p for larch@yhetil.org; Wed, 11 May 2022 17:59:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nouMw-00040T-Md for help-guix@gnu.org; Wed, 11 May 2022 17:59:42 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44015) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nouMu-0006OL-0m for help-guix@gnu.org; Wed, 11 May 2022 17:59:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A70D2240107 for ; Wed, 11 May 2022 23:59:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1652306375; bh=kh8sGcNpoF70H17Bgj5unh9BALk+ZVLFLWtCQW/Utwo=; h=From:To:Cc:Subject:Date:From; b=DVX/+z6dIrCtmnDMiQTZ1kHeaQUN5t35SD6C6FCpklXAYzWO8lzGNmWCNMVcrIP3k /9wL+IoFQP/ZAqOIrPhKKaDX4+3GBFKIn9ZtcUOXAuEvJMnvi17oMOkXTiPifVB1OK d34o9z/PTkddWeZXxsieyfauVHDc2vBHARgoj9Z9223zJHS/Jq7XzmcKjQ9qqGUyfJ 7g0weakEgS08Ql+WV1nOsr/kdIrexUmhJQ9icap6cL6Dj9YaknSAx2Wvglz8k99EVM G5+CxLt+0TpYpaqkLiGtVeEl070xJQOHqD4mDQc9p6L7J5v37MhnLYudGcbHz5FRKq 5o+wuw/RI8z0w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kz82Z3HsDz9rxM; Wed, 11 May 2022 23:59:34 +0200 (CEST) References: <05b8334e-8ecb-1373-97b3-10b8617ed3c8@univ-rouen.fr> <490A4062-75F7-4919-803D-47E98DF9421C@lepiller.eu> <85258fe5-a220-41c6-d153-86de8c6bd57e@univ-rouen.fr> <34587fa7-652f-19a0-3006-aa3e707b13fb@univ-rouen.fr> From: Mekeor Melire To: sebastien.rey-coyrehourcq@univ-rouen.fr Cc: help-guix@gnu.org Subject: Re: Guix home, guix system, channels, some noob questions Date: Wed, 11 May 2022 21:56:33 +0000 In-reply-to: <34587fa7-652f-19a0-3006-aa3e707b13fb@univ-rouen.fr> Message-ID: <877d6rhgud.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 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, PDS_BTC_ID=0.471, RCVD_IN_DNSWL_MED=-2.3, 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=1652306395; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kh8sGcNpoF70H17Bgj5unh9BALk+ZVLFLWtCQW/Utwo=; b=i8+f5Pld3fVyZSlqcdcpFLgXwYVaBvz8UKUjVcY58c9Eg/XiZtVQtGkYVvcZDPUj4K05et qHLXskeF/xtWB67ehI50OPRKr8o4zCjJlvDrAeXNTSO4EYoEgxrciaeN/2BBHysjkMjd75 tAVAW6tiwPjBMlwYPh/yTOj5mEbY2smsc8OBFIxtSM1M+ppKZ2ZMk4OF7vfC5SXbQ0X4mg 0zBLT5lw/+KwUivBHGUY6xFtBFXb9INb+BzP0/UFNZpeb0TdUPK5kLqNO2RZgIqrxaMjiX Eww92pjlqOvd+KS+OXeMUGWL+ozE0JjaLOdmxT9/am1+/VVaSWuETX103UOwMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652306395; a=rsa-sha256; cv=none; b=R8N0RFA6XyxWD8Lq7fvbrvu9d/86twipcvqszpEGfCURgkf8eASIxZamIhP9ACn8anBqc7 4F9G1d+wWsRM+5B4NhTQkSljz1jP/lfXwIFO3Oqe895hhhuFK82+OhLoVCnTTwz+qFiCiv 0n4kCPUKq7JANys06XIgP7760FA2yLs5cm7zarrwBbMsqdjGC4zTcl1OTkjxfp9Gk+K9J3 fYdvzLIBolfqpUfws2KMqUKgLd4L7ZpVziPSqUvrFYZgNX+cxFGsG5Dt0fpSYshcn7j3ij XvA+5x7v8aMl0YEwgIOROAxoz0iih5TYmbwOcVNEExMiVN2WdlGc6GAVtfTSvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b="DVX/+z6d"; dmarc=pass (policy=none) header.from=posteo.de; 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: -5.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b="DVX/+z6d"; dmarc=pass (policy=none) header.from=posteo.de; 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: 714043909B X-Spam-Score: -5.21 X-Migadu-Scanner: scn1.migadu.com X-TUID: Xru9KVnwpFPE 2022-05-11 / 16:55 / sebastien.rey-coyrehourcq@univ-rouen.fr: > Hi, > > My other question remain about guix home / guix system relation, and sudo= , but > jpoiret found my main problem, my channels.scm are not well defined / not= good > ... > > - I made (cons * (channel ...)) (cons* (channel ...)) etc. > > - and .. the correct way is (cons * (channel ...) (channel ...)) For the record: Make sure you use (cons* =E2=80=A6) and not (cons * =E2=80= =A6), i.e. don't add a space there. The identifier is `cons*`. :) > Everything run fine now with *guix system reconfigure /.config/guix/syste= m.scm* > > Best > > Le 11/05/2022 =C3=A0 16:36, S=C3=A9bastien Rey-Coyrehourcq a =C3=A9crit= =C2=A0: > > Hi, > > > > Thanks Julien, > > > > I see on the doc that *sudo* run command as user and not as root like o= ther > > distro. So, to be sure, if i run *sudo guix something*, i don't change = user to > > run this command isn't it ? > > > > Actually i only work with my account "myuser" into group > > ("users","wheel",etc.) using or not using *sudo* (this is not clear whe= n i > > need or not) for running *guix* command. > > > > About the commands with /.config/guix/channels.scm (see content here > > https://paste.debian.net/1240553)=C2=A0 : > > > > a) *guix describe* and *sudo guix describe* and *sudo -E guix describe*= return > > > > G=C3=A9n=C3=A9ration 7=C2=A0=C2=A0=C2=A0 11 mai 2022 16:01:25=C2=A0=C2= =A0=C2=A0 (actuelle) > > =C2=A0 guix d24ad39 > > =C2=A0=C2=A0=C2=A0 URL du d=C3=A9p=C3=B4t : https://git.savannah.gnu.or= g/git/guix.git > > =C2=A0=C2=A0=C2=A0 branche=E2=80=AF: master > > =C2=A0=C2=A0=C2=A0 commit : d24ad3949127a938cad306f0524c120afe5e2e4f > > > > b) *guix system describe* return > > > > > > G=C3=A9n=C3=A9ration 7=C2=A0=C2=A0=C2=A0 10 mai 2022 12:39:34=C2=A0=C2= =A0=C2=A0 (actuelle) > > =C2=A0 nom de fichier=E2=80=AF: /var/guix/profiles/system-7-link > > =C2=A0 nom de fichier canonique : > > /gnu/store/az1ff4ll80dbrbkayc4y0jqgnc2m37mp-system > > =C2=A0 =C3=A9tiquette : GNU with Linux 5.17.5 > > =C2=A0 chargeur de d=C3=A9marrage : grub-efi > > =C2=A0 p=C3=A9riph=C3=A9rique racine : /dev/mapper/cryptroot > > =C2=A0 noyau : /gnu/store/0ffifgs0ixgz0bf1pcahkfdkx9f7h720-linux-5.17.5= /bzImage > > =C2=A0 canaux : > > =C2=A0=C2=A0=C2=A0 nonguix: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 URL du d=C3=A9p=C3=B4t : https://gitlab.= com/nonguix/nonguix > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 branche : master > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 commit : 1de0c32142c54bc73af5556d5e45c77= 152b31f0f > > =C2=A0=C2=A0=C2=A0 guix: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 URL du d=C3=A9p=C3=B4t : https://git.sav= annah.gnu.org/git/guix.git > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 branche : master > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 commit : d775a24344d4a910f6a19072c595bda= fcf104b6f > > =C2=A0 fichier de configuration : > > /gnu/store/idr8ds86m69gbx217g5h3qm6m353wliz-configuration.scm > > > > c) *guix home describe* return > > > > > > G=C3=A9n=C3=A9ration 1=C2=A0=C2=A0=C2=A0 10 mai 2022 16:59:14=C2=A0=C2= =A0=C2=A0 (actuelle) > > =C2=A0 nom de fichier=E2=80=AF: /var/guix/profiles/per-user/reyman/guix= -home-1-link > > =C2=A0 nom de fichier canonique : /gnu/store/3q599hyjkx8c5ywsdy2gqfmx2b= jzgzmm-home > > =C2=A0 canaux : > > =C2=A0=C2=A0=C2=A0 flat: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 URL du d=C3=A9p=C3=B4t : https://github.= com/flatwhatson/guix-channel.git > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 branche : master > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 commit : 094746c1e2e90f2df1e598ab1fd0abb= 4d75ce84d > > =C2=A0=C2=A0=C2=A0 guix: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 URL du d=C3=A9p=C3=B4t : https://git.sav= annah.gnu.org/git/guix.git > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 branche : master > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 commit : 0f705472126f7b935e0783bcd8fec83= 1b7a0593b > > =C2=A0 fichier de configuration : > > /gnu/store/ip90ffd0bzlr7j6kw5ky2pgxpyq1x23c-configuration.scm > > > > With jpoiret, i try to resolve the issue on chat, i also try to run man= ually > > *guix pull -C ./config/guix/channels.scm* without success. > > > > A *command -v guix* return */home/myuser/.config/current/bin/guix* > > > > Best regards, > > > > SR > > > > > > > > Le 11/05/2022 =C3=A0 12:47, Julien Lepiller a =C3=A9crit=C2=A0: > >> Hi S=C3=A9bastien, > >> > >> When you run guix describe, it's running the guix for your user, which= miggt > >> be different from the one you run when you use sudo. That could explai= n why > >> the modules are not found. I don't think guix home has anything to do = with > >> that. > >> > >> I noticed that the first time you use sudo -E, whereas you use only su= do on > >> step 5. May=C3=A9e that's why it fails? > >> > >> I would run sudo guix describe and sudo -E guix describe to see how th= e two > >> might be different from your user's guix :) > >> > >> HTH! > >> > >> On May 11, 2022 11:09:19 AM GMT+02:00, "S=C3=A9bastien Rey-Coyrehourcq" > >> wrote: > >> > >> =C2=A0=C2=A0=C2=A0 Hi Guix people :) > >> > >> =C2=A0=C2=A0=C2=A0 I'm starting guix, picking information when needed = into documentation. > >> > >> =C2=A0=C2=A0=C2=A0 I'm facing difficulties with channels.scm since i s= tart using "guix > >> home", i read the doc page, but i need some other things to understand. > >> > >> =C2=A0=C2=A0=C2=A0 Here my logic to start just after install : > >> > >> =C2=A0=C2=A0=C2=A0 1 - I modify my //etc/guix/channels.scm/ file to ad= d some modules : > >> /nonguix/ (my computer don't work well without) and /emacs-native-dep/= from > >> flatwhatson flat channel. > >> > >> =C2=A0=C2=A0=C2=A0 2 - I /guix -E guix system reconfigure /etc/config.= scm/, /guix pull/, and > >> everything goes well > >> > >> =C2=A0=C2=A0=C2=A0 3 - Like explained in the doc, I run /guix home imp= ort ~/src/guix-config > >> /that generate /a //home-configuration.scm// > >> =C2=A0=C2=A0=C2=A0 / > >> > >> =C2=A0=C2=A0=C2=A0 /4 - /Into /home-configuration.scm///i add the pack= age htop and > >> /emacs-native-comp/ > >> > >> =C2=A0=C2=A0=C2=A0 5 - In the guix home doc the next command is /guix = home reconfigure > >> config.scm /but this is probably a typo and i run /guix home reconfigu= re > >> ~/src/guix-config/home-configuration.scm/ > >> > >> =C2=A0=C2=A0=C2=A0 6 - Everything goes well, emacs-native-dep compile = during 1 hour, > >> problems arrive after that. > >> > >> =C2=A0=C2=A0=C2=A0 7 - I'm moving the //etc/guix/config.scm/ and //etc= /guix/channels.scm /to > >> my home /~/.config/guix/ , /and i run /sudo guix system reconfigure > >> ~/.config/guix/system.scm///*, that fail*/, /it seems the module (nong= nu and > >> emacs-native-dep) are not referenced, like the error say /"no code for= module > >> ( nongnu ..." /But when i run /guix system describe/, the corresponding > >> channel are well defined. / > >> =C2=A0=C2=A0=C2=A0 / > >> > >> =C2=A0=C2=A0=C2=A0 After that, i try many thing, like moving channels.= scm and system.scm > >> back to /etc/guix/ but every reconfigure command fail in link with > >> channel/module not recognized (emacs-native-dep or nongnu) > >> > >> =C2=A0=C2=A0=C2=A0 - /guix home reconfigure ~/src/guix-config/home-con= figuration.scm/ > >> > >> =C2=A0=C2=A0=C2=A0 - /guix system reconfigure ~/.config/guix/system.sc= m/ > >> > >> =C2=A0=C2=A0=C2=A0 - /guix system reconfigure ~/etc/guix/config.scm/ > >> > >> =C2=A0=C2=A0=C2=A0 So my question is first, why that fail after switch= ing to guix home ? and > >> how and where i need to define/set correctly the /channel.scm/ file to= repair > >> that ? > >> > >> =C2=A0=C2=A0=C2=A0 For example, /guix system//describe/ and /guix home= describe/ and /guix > >> describe/ return all different channel referenced, how i manage that ? > >> > >> =C2=A0=C2=A0=C2=A0 I suppose there is a "workflow to use well guix hom= e"? but this is not > >> actually in the doc. For example, perhaps after creating and switching= to > >> guix home profile, running guix system is impossible or prohibited ? I > >> suppose this will be added in the future. > >> > >> =C2=A0=C2=A0=C2=A0 Thanks a lot for your help. > >> ----------------------------------------------------------------------= -- > >> =C2=A0=C2=A0=C2=A0 Sebastien Rey-C > >> > >> > >> =C2=A0=C2=A0=C2=A0 // > >>