From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 MGugMg/be2J8XAEAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 17:49:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WOpnMg/be2LJWwAAauVa8A (envelope-from ) for ; Wed, 11 May 2022 17:49:35 +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 0F78E15988 for ; Wed, 11 May 2022 17:49:33 +0200 (CEST) Received: from localhost ([::1]:36672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nooah-0008PM-T3 for larch@yhetil.org; Wed, 11 May 2022 11:49:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nooaD-0008Os-UH for help-guix@gnu.org; Wed, 11 May 2022 11:49:01 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:53756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nooaA-0002c5-AA for help-guix@gnu.org; Wed, 11 May 2022 11:49:01 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 74b89762; Wed, 11 May 2022 15:48:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=OtF/7OVoFMPY JA4R3LZOAyB3Z8N+rDgNwe3ElIMdXdo=; b=Uf+GxiO8v6bvcpBIknQxBfCghIY5 v3pUnSYtxvL/XWJ+UuDHWV+D3PVcXz1o5/CQlwcauRQ7YtpYkNzFPqS/zPaFVizY lPsRZguWWdrUCdlMVJ1kqCubphViQtC6v1hit7P/0cbfbJjpUBVu5LUUS9IbppG+ 8SayhgsPNURW94sh2o/qpJSSRz7SjxOM6kvkJWOla78EP0UF8mS8+ylJq2co+ni+ 2EhCjO2QUj8R0eht7pTuvyf4LCztlXXI1gM1oXJmU5vZbTIUoRk7w40R9Gtc+M/g RRHjAuERlatdZGIXkAxA8tYEFDPaiK+P8FCX+x/r9crObUKL1n/E2ONCzg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 8c789c1a (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 11 May 2022 15:48:53 +0000 (UTC) Date: Wed, 11 May 2022 17:48:47 +0200 From: Julien Lepiller To: sebastien.rey-coyrehourcq@univ-rouen.fr, =?ISO-8859-1?Q?S=E9bastien_Rey-Coyrehourcq?= , help-guix@gnu.org Subject: Re: Guix home, guix system, channels, some noob questions User-Agent: K-9 Mail for Android In-Reply-To: <34587fa7-652f-19a0-3006-aa3e707b13fb@univ-rouen.fr> 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> Message-ID: <357B4763-2DA0-4255-9E58-B882E8ED1A9A@lepiller.eu> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, HTML_MESSAGE=0.001, PDS_BTC_ID=0.471, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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=1652284175; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=orhQubi2uVCDmHsg52RFeYPIHOXE2C2KhAGKIWPIRps=; b=kIBv3/9sSfLHe1N6qe1b66u9KjZ/zjGjzdZwGIMYJSlEOL5yH+oqSvtAlvd1wQ3L3NYrOu 1zpOVTq8wvh10F9dV43thA/wMkKsWD9jtHHdjlhbVbKSlFm5c3uDoxxT5jFsPf1Gm8ymAU DlqieAour5BSlgS2Qh03rtbMmiXmWgAIg056h0XrRiYICZNuXwfmMC255kVWK0HJ2mcYtZ H5WmQEghTYD7BfbBEzns6FdYwicC3TdFL2wtA8c63lzJE8pKNVE2/nWH5lOjCVDEgocdq5 HOjCNCeG0X3sPx+6ltdcB+7n9tOSAuth55T5Trmcm+CUt7gVbbv5XUFEq00UOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652284175; a=rsa-sha256; cv=none; b=CAZov2YWZ/J/46k81C+80eKgXs8YXHN5ZcGPc9/Z+AL8VeVFL8+pelPGtRDR8CosrGlguz 6ek7tA7RrVNy4ebw0Y9LMiu3o8J5sewuM9IS7NhF6Tigid9tFNmP974574Pxkt/NfP6R76 pd2G6a6sHVZfqFO5QwVHuZ6Xa4jg8tiFhUyX5gY3kmZ3PjsqM7Aka05qnYxnWf+B+4MhoW Wti9MwcnrkB1aVDnDu1qC9AGc0waLyj6V5ljOw0o2zH+CL/OB4EquVImJCw6yvfWIWIP+D h3aNdn9yR4LSk3cTQPGPdFb+JlvnKT0sTskQp5mMjkWbfmHrIrFv7XM+/vfIag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=Uf+GxiO8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: 6.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=Uf+GxiO8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: 0F78E15988 X-Spam-Score: 6.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0qtVfSVdh4fu Guix home and guix system are pretty similar as they are used to declarativ= ely manage configuration=2E But, they are not mutually exclusive=2E Guix sy= stem is the only way to install and update the Guix System (hence the name = ;))=2E Guix home manages your user's configuration (in /home) while guix system m= anages the system's configuration (traditionally in /etc, though less true = for guix)=2E The two are acting in a very similar on two different things= =2E Also, you can use guix home on a foreign distro, or choose to not use guix= home on the Guix System=2E HTH! On May 11, 2022 4:55:23 PM GMT+02:00, "S=C3=A9bastien Rey-Coyrehourcq" wrote: >Hi, > >My other question remain about guix home / guix system relation, and sudo= , but jpoiret found my main problem, my channels=2Escm are not well defined= / not good =2E=2E=2E > >- I made (cons * (channel =2E=2E=2E)) (cons* (channel =2E=2E=2E)) etc=2E > >- and =2E=2E the correct way is (cons * (channel =2E=2E=2E) (channel =2E= =2E=2E)) > >Everything run fine now with *guix system reconfigure /=2Econfig/guix/sys= tem=2Escm* > >Best > >Le 11/05/2022 =C3=A0 16:36, S=C3=A9bastien Rey-Coyrehourcq a =C3=A9crit= =C2=A0: >> Hi, >>=20 >> Thanks Julien, >>=20 >> I see on the doc that *sudo* run command as user and not as root like o= ther distro=2E So, to be sure, if i run *sudo guix something*, i don't chan= ge user to run this command isn't it ? >>=20 >> Actually i only work with my account "myuser" into group ("users","whee= l",etc=2E) using or not using *sudo* (this is not clear when i need or not)= for running *guix* command=2E >>=20 >> About the commands with /=2Econfig/guix/channels=2Escm (see content her= e https://paste=2Edebian=2Enet/1240553)=C2=A0 : >>=20 >> a) *guix describe* and *sudo guix describe* and *sudo -E guix describe*= return >>=20 >> 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=2Esavannah=2Egn= u=2Eorg/git/guix=2Egit >> =C2=A0=C2=A0=C2=A0 branche=E2=80=AF: master >> =C2=A0=C2=A0=C2=A0 commit : d24ad3949127a938cad306f0524c120afe5e2e4f >>=20 >> b) *guix system describe* return >>=20 >>=20 >> 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/az1ff4ll80dbrbkayc4y0jqgnc= 2m37mp-system >> =C2=A0 =C3=A9tiquette : GNU with Linux 5=2E17=2E5 >> =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=2E17= =2E5/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= =2Ecom/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=2Es= avannah=2Egnu=2Eorg/git/guix=2Egit >> =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/idr8ds86m69gbx217g5h3qm6m3= 53wliz-configuration=2Escm >>=20 >> c) *guix home describe* return >>=20 >>=20 >> 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= =2Ecom/flatwhatson/guix-channel=2Egit >> =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=2Es= avannah=2Egnu=2Eorg/git/guix=2Egit >> =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/ip90ffd0bzlr7j6kw5ky2pgxpy= q1x23c-configuration=2Escm >>=20 >> With jpoiret, i try to resolve the issue on chat, i also try to run man= ually *guix pull -C =2E/config/guix/channels=2Escm* without success=2E >>=20 >> A *command -v guix* return */home/myuser/=2Econfig/current/bin/guix* >>=20 >> Best regards, >>=20 >> SR >>=20 >>=20 >>=20 >> Le 11/05/2022 =C3=A0 12:47, Julien Lepiller a =C3=A9crit=C2=A0: >>> Hi S=C3=A9bastien, >>>=20 >>> 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=2E That could ex= plain why the modules are not found=2E I don't think guix home has anything= to do with that=2E >>>=20 >>> I noticed that the first time you use sudo -E, whereas you use only su= do on step 5=2E May=C3=A9e that's why it fails? >>>=20 >>> 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 :) >>>=20 >>> HTH! >>>=20 >>> On May 11, 2022 11:09:19 AM GMT+02:00, "S=C3=A9bastien Rey-Coyrehourcq= " wrote: >>>=20 >>> =C2=A0=C2=A0=C2=A0 Hi Guix people :) >>>=20 >>> =C2=A0=C2=A0=C2=A0 I'm starting guix, picking information when needed = into documentation=2E >>>=20 >>> =C2=A0=C2=A0=C2=A0 I'm facing difficulties with channels=2Escm since i= start using "guix home", i read the doc page, but i need some other things= to understand=2E >>>=20 >>> =C2=A0=C2=A0=C2=A0 Here my logic to start just after install : >>>=20 >>> =C2=A0=C2=A0=C2=A0 1 - I modify my //etc/guix/channels=2Escm/ file to = add some modules : /nonguix/ (my computer don't work well without) and /ema= cs-native-dep/ from flatwhatson flat channel=2E >>>=20 >>> =C2=A0=C2=A0=C2=A0 2 - I /guix -E guix system reconfigure /etc/config= =2Escm/, /guix pull/, and everything goes well >>>=20 >>> =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=2Escm// >>> =C2=A0=C2=A0=C2=A0 / >>>=20 >>> =C2=A0=C2=A0=C2=A0 /4 - /Into /home-configuration=2Escm///i add the pa= ckage htop and /emacs-native-comp/ >>>=20 >>> =C2=A0=C2=A0=C2=A0 5 - In the guix home doc the next command is /guix = home reconfigure config=2Escm /but this is probably a typo and i run /guix = home reconfigure ~/src/guix-config/home-configuration=2Escm/ >>>=20 >>> =C2=A0=C2=A0=C2=A0 6 - Everything goes well, emacs-native-dep compile = during 1 hour, problems arrive after that=2E >>>=20 >>> =C2=A0=C2=A0=C2=A0 7 - I'm moving the //etc/guix/config=2Escm/ and //e= tc/guix/channels=2Escm /to my home /~/=2Econfig/guix/ , /and i run /sudo gu= ix system reconfigure ~/=2Econfig/guix/system=2Escm///*, that fail*/, /it s= eems the module (nongnu and emacs-native-dep) are not referenced, like the = error say /"no code for module ( nongnu =2E=2E=2E" /But when i run /guix sy= stem describe/, the corresponding channel are well defined=2E / >>> =C2=A0=C2=A0=C2=A0 / >>>=20 >>> =C2=A0=C2=A0=C2=A0 After that, i try many thing, like moving channels= =2Escm and system=2Escm back to /etc/guix/ but every reconfigure command fa= il in link with channel/module not recognized (emacs-native-dep or nongnu) >>>=20 >>> =C2=A0=C2=A0=C2=A0 - /guix home reconfigure ~/src/guix-config/home-con= figuration=2Escm/ >>>=20 >>> =C2=A0=C2=A0=C2=A0 - /guix system reconfigure ~/=2Econfig/guix/system= =2Escm/ >>>=20 >>> =C2=A0=C2=A0=C2=A0 - /guix system reconfigure ~/etc/guix/config=2Escm/ >>>=20 >>> =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 /ch= annel=2Escm/ file to repair that ? >>>=20 >>> =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 ? >>>=20 >>> =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=2E For example, perhaps after creat= ing and switching to guix home profile, running guix system is impossible o= r prohibited ? I suppose this will be added in the future=2E >>>=20 >>> =C2=A0=C2=A0=C2=A0 Thanks a lot for your help=2E >>> ----------------------------------------------------------------------= -- >>> =C2=A0=C2=A0=C2=A0 Sebastien Rey-C >>>=20 >>>=20 >>> =C2=A0=C2=A0=C2=A0 // >>>=20