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 SIcMLgrafGIf2wAAbAwnHQ (envelope-from ) for ; Thu, 12 May 2022 11:57:30 +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 OFHQLQrafGK/aQEAauVa8A (envelope-from ) for ; Thu, 12 May 2022 11:57:30 +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 56A9C37EA for ; Thu, 12 May 2022 11:57:29 +0200 (CEST) Received: from localhost ([::1]:50614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np5ZY-00058k-GF for larch@yhetil.org; Thu, 12 May 2022 05:57:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np586-0007qs-Ak for help-guix@gnu.org; Thu, 12 May 2022 05:29:06 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:53914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np582-0006tc-Hq for help-guix@gnu.org; Thu, 12 May 2022 05:29:05 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 788a51bb; Thu, 12 May 2022 09:28:57 +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=guEMIqEEHD2v jxDql5WH1aNu/KNRf9wkq2+22d48NdQ=; b=Iaw1u/k4R6Yvq9br+4LQ+W7KcJNM d8k5BmYZ6lxByh1Kyv0Z6KbnJEVWzIYW2c/4hkq1CrVrDM2HNWSMRe0TI+6Jc5SC hgEPnMbexuuGe8EhC7Ryj+gBhrzO+9jJuJKausrpaQ+OWjfyl6NvguhWNOMhNMw3 ZQyuoYKqbrSLgwaQ6W5arWzctfRUgwaBSVJeicXK0nh6z31oUweaN+o3hh5QZxw7 tR1CbcBOkTFYNAuqQqhly78KJANvjWATw4+6pK6u1XnNzou252YDR2Te+DmzQO6C Y9vSMEYU3N1zEETOplPXXAdACi8FCfbzOoIuMEG33ei6mixPJB+lAa0Gvw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 9604d202 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 12 May 2022 09:28:52 +0000 (UTC) Date: Thu, 12 May 2022 11:28:46 +0200 From: Julien Lepiller To: =?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: <36a809b0-6d5a-2f29-4c5f-07a418e05cbd@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> <357B4763-2DA0-4255-9E58-B882E8ED1A9A@lepiller.eu> <36a809b0-6d5a-2f29-4c5f-07a418e05cbd@univ-rouen.fr> Message-ID: <441E1AD5-DFC9-4BBD-A45C-8328B51BE8D6@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=1652349450; 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=/8Db4HWtn9wf+tXbacPq8W+aa4RILnxdKfHpc+uGhvA=; b=Z2H8apVjpo0KAwwtxJjx/wGC0xG7FbRUzs6wMglrtYSpbkQNZEe6tBV83fmFd+rK89mTv9 r2b0FY/xJ9rsrruAI5jzjYvK5DY2/yPlgaQvWXXutNgZjJ8Foq8tmQimwuU7jndkzDxZ3z lzq+/FRIA31grrEEGT8mo9bC8eUcnLy6UVZ5+QTbxB9ajGV48dYBA9SWoPXFjfvpuPqmt6 ivniI6y4yTiWDu2iceQmooVSJVqatipiznz6yrqTyHPSykOrpdXgV010s8WZZeG52ZrB0F 4MLly63+wE/kgGahiKPeEcFFEk5Pla8+9X5C/kBkpuTELdrpZfz6TyVQtKl4gQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652349450; a=rsa-sha256; cv=none; b=nbifn73uJhDwJhbGS901VX/CJlWXkOHHEw4qsK1ECpIbZOIGnZ7/BuK1DqEAzQF1D7y/ng jKpTIA3ZtlL7tE4YcAtaNBH0TmCfiD4sJtmmnQyzEhpBsP3f4gcAkG4Mu1vICH34YyT7uF Zbm84VV3UALHEYDGxrpGLbqO1AhAVnArQVq/oRBh3UcpMFjIq+z5e8XC+TJ+0C58w3pwxG 2eQpgjur4JO/mTZGGadAWKVfNA3tCOrvjG6brhi1ORIjP9FSZqROn88AcfcdeuMEe/WQxM RVHFxi+wLzUr6uZ+b811hSSXOyVku4QAaf3PgMHu0reIiKjhFhKon8ggd7LuNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b="Iaw1u/k4"; 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: 7.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b="Iaw1u/k4"; 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: 56A9C37EA X-Spam-Score: 7.69 X-Migadu-Scanner: scn1.migadu.com X-TUID: /OHy9pNa0plk guix install something installs for the current user=2E Note that, if you d= o that as root, the package is also only available to root=2E The only way = to install or remove a global package is through guix system and its config= uration file=2E I don't know how guix home interacts with other solutions=2E We don't have a good solution for secrets=2E We advise to manage the "out-= of-band" to make sure that you don't share the secret accidentally (eg=2E p= ublishing your configuration with others) and that the secret doesn't end u= p in the store (it's world-readable)=2E On May 12, 2022 10:40:18 AM GMT+02:00, "S=C3=A9bastien Rey-Coyrehourcq" wrote: >Thanks Julien, > >Ok i see, like you say jpoiret also say me that the concept are orthogona= l, so if i understand well : > >- adding emacs as system package, i suppose this is available for all use= rs > >- adding emacs as home package, i suppose this is available only for me > >And *guix install something* install for which, system or home or both ? > >Some other general questions : > >- About dotfile management, is it possible to use chezmoi, yadm, stow in = // of guix home ? > >I'm interested by some example if you have=2E > >- About secrets management, i know this is very complicated in nix (there= are one hundred way to do the things, more or less secure), how that works= if i want to inject *secrets* into guix home scm file and maintain securit= y when i share or publish my config with/to others ? > >Thanks, > >Best regards > > >Le 11/05/2022 =C3=A0 17:48, Julien Lepiller a =C3=A9crit=C2=A0: >> Guix home and guix system are pretty similar as they are used to declar= atively manage configuration=2E But, they are not mutually exclusive=2E Gui= x system is the only way to install and update the Guix System (hence the n= ame ;))=2E >>=20 >> Guix home manages your user's configuration (in /home) while guix syste= m manages the system's configuration (traditionally in /etc, though less tr= ue for guix)=2E The two are acting in a very similar on two different thing= s=2E >>=20 >> Also, you can use guix home on a foreign distro, or choose to not use g= uix home on the Guix System=2E >>=20 >> HTH! >>=20 >> On May 11, 2022 4:55:23 PM GMT+02:00, "S=C3=A9bastien Rey-Coyrehourcq" = wrote: >>=20 >> Hi, >>=20 >> My other question remain about guix home / guix system relation, an= d sudo, but jpoiret found my main problem, my channels=2Escm are not well d= efined / not good =2E=2E=2E >>=20 >> - I made (cons * (channel =2E=2E=2E)) (cons* (channel =2E=2E=2E)) e= tc=2E >>=20 >> - and =2E=2E the correct way is (cons * (channel =2E=2E=2E) (channe= l =2E=2E=2E)) >>=20 >> Everything run fine now with *guix system reconfigure /=2Econfig/gu= ix/system=2Escm* >>=20 >> Best >>=20 >> Le 11/05/2022 =C3=A0 16:36, S=C3=A9bastien Rey-Coyrehourcq a =C3=A9= crit=C2=A0: >>=20 >> Hi, Thanks Julien, I see on the doc that *sudo* run command as >> user and not as root like other distro=2E 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=2E) using or not using >> *sudo* (this is not clear when i need or not) for running >> *guix* command=2E About the commands with >> /=2Econfig/guix/channels=2Escm (see content here >> https://paste=2Edebian=2Enet/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=2Esavannah=2Egnu=2Eorg/git/guix=2Egit =C2=A0=C2=A0= =C2=A0 branche=E2=80=AF: master >> =C2=A0=C2=A0=C2=A0 commit : d24ad3949127a938cad306f0524c120afe5= e2e4f 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 canoniqu= e : >> /gnu/store/az1ff4ll80dbrbkayc4y0jqgnc2m37mp-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 no= yau : >> /gnu/store/0ffifgs0ixgz0bf1pcahkfdkx9f7h720-linux-5=2E17=2E5/bz= Image >> =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 : 1de0c32142c54bc73af5556= d5e45c77152b31f0f =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=2Esavannah=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 : d775a24344d4a910= f6a19072c595bdafcf104b6f >> =C2=A0 fichier de configuration : >> /gnu/store/idr8ds86m69gbx217g5h3qm6m353wliz-configuration=2Escm >> 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/3q599hyjkx8c5ywsdy2gqfmx2bjzgzmm-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 : >> 094746c1e2e90f2df1e598ab1fd0abb4d75ce84d =C2=A0=C2=A0=C2=A0 gui= x: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 URL >> du d=C3=A9p=C3=B4t : https://git=2Esavannah=2Egnu=2Eorg/git/gui= x=2Egit =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >> branche : master =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 commit : >> 0f705472126f7b935e0783bcd8fec831b7a0593b =C2=A0 fichier de >> configuration : >> /gnu/store/ip90ffd0bzlr7j6kw5ky2pgxpyq1x23c-configuration=2Escm >> With jpoiret, i try to resolve the issue on chat, i also try >> to run manually *guix pull -C =2E/config/guix/channels=2Escm* >> without success=2E A *command -v guix* return >> */home/myuser/=2Econfig/current/bin/guix* Best regards, SR Le >> 11/05/2022 =C3=A0 12:47, Julien Lepiller a =C3=A9crit=C2=A0: >>=20 >> 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=2E That could explain why the >> modules are not found=2E I don't think guix home has >> anything to do with that=2E I noticed that the first time >> you use sudo -E, whereas you use only sudo on step 5=2E >> May=C3=A9e that's why it fails? I would run sudo guix descr= ibe >> and sudo -E guix describe to see how the 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, pickin= g information >> when needed into documentation=2E =C2=A0=C2=A0=C2=A0 I'm fa= cing >> difficulties with channels=2Escm since i start using "guix >> home", i read the doc page, but i need some other things >> to understand=2E =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/cha= nnels=2Escm/ >> file to add some modules : /nonguix/ (my computer don't >> work well without) and /emacs-native-dep/ from flatwhatson >> flat channel=2E =C2=A0=C2=A0=C2=A0 2 - I /guix -E guix syst= em reconfigure >> /etc/config=2Escm/, /guix pull/, and everything goes well >> =C2=A0=C2=A0=C2=A0 3 - Like explained in the doc, I run /gu= ix home import >> ~/src/guix-config /that generate /a >> //home-configuration=2Escm// =C2=A0=C2=A0=C2=A0 / =C2=A0=C2= =A0=C2=A0 /4 - /Into >> /home-configuration=2Escm///i add the package 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=2Escm /but this is >> probably a typo and i run /guix home reconfigure >> ~/src/guix-config/home-configuration=2Escm/ =C2=A0=C2=A0=C2= =A0 6 - >> Everything goes well, emacs-native-dep compile during 1 >> hour, problems arrive after that=2E =C2=A0=C2=A0=C2=A0 7 - = I'm moving the >> //etc/guix/config=2Escm/ and //etc/guix/channels=2Escm /to = my >> home /~/=2Econfig/guix/ , /and i run /sudo guix system >> reconfigure ~/=2Econfig/guix/system=2Escm///*, that fail*/, >> /it seems 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 system describe/, t= he >> corresponding channel are well defined=2E / =C2=A0=C2=A0=C2= =A0 / =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 fail in link with channel/module not recognized >> (emacs-native-dep or nongnu) =C2=A0=C2=A0=C2=A0 - /guix hom= e reconfigure >> ~/src/guix-config/home-configuration=2Escm/ =C2=A0=C2=A0=C2= =A0 - /guix >> system reconfigure ~/=2Econfig/guix/system=2Escm/ =C2=A0=C2= =A0=C2=A0 - /guix >> system reconfigure ~/etc/guix/config=2Escm/ =C2=A0=C2=A0=C2= =A0 So my >> question is first, why that fail after switching to guix >> home ? and how and where i need to define/set correctly >> the /channel=2Escm/ 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 "work= flow to use >> well guix home"? but this is not actually in the doc=2E 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=2E =C2=A0=C2=A0= =C2=A0 Thanks a >> lot for your help=2E >> -----------------------------------------------------------= ------------- >> =C2=A0=C2=A0=C2=A0 Sebastien Rey-C =C2=A0=C2=A0=C2=A0 //=20