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 qO+4DlTPe2KlbgAAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 16:59:32 +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 uEXMDVTPe2JszgAAG6o9tA (envelope-from ) for ; Wed, 11 May 2022 16:59:32 +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 A543813BAE for ; Wed, 11 May 2022 16:59:31 +0200 (CEST) Received: from localhost ([::1]:56152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nonoI-0004Wg-Re for larch@yhetil.org; Wed, 11 May 2022 10:59:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nonkO-0001fA-7H for help-guix@gnu.org; Wed, 11 May 2022 10:55:29 -0400 Received: from smtp-out-5.univ-rouen.fr ([193.52.152.100]:8342 helo=mailhoc.univ-rouen.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nonkL-0002Yy-Pw for help-guix@gnu.org; Wed, 11 May 2022 10:55:27 -0400 Received: from [10.196.65.97] (irihs-22-b69e-1657.univ-rouen.fr [10.196.65.97]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailhoc.univ-rouen.fr (Postfix) with ESMTPSA id 3BE5D1AFC; Wed, 11 May 2022 16:55:23 +0200 (CEST) Message-ID: <34587fa7-652f-19a0-3006-aa3e707b13fb@univ-rouen.fr> Date: Wed, 11 May 2022 16:55:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Guix home, guix system, channels, some noob questions Content-Language: en-US From: =?UTF-8?Q?S=c3=a9bastien_Rey-Coyrehourcq?= To: Julien Lepiller , help-guix@gnu.org References: <05b8334e-8ecb-1373-97b3-10b8617ed3c8@univ-rouen.fr> <490A4062-75F7-4919-803D-47E98DF9421C@lepiller.eu> <85258fe5-a220-41c6-d153-86de8c6bd57e@univ-rouen.fr> In-Reply-To: <85258fe5-a220-41c6-d153-86de8c6bd57e@univ-rouen.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=193.52.152.100; envelope-from=sebastien.rey-coyrehourcq@univ-rouen.fr; helo=mailhoc.univ-rouen.fr X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, BITCOIN_SPAM_02=1.47, NICE_REPLY_A=-0.001, PDS_BTC_ID=0.471, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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: , Reply-To: sebastien.rey-coyrehourcq@univ-rouen.fr 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=1652281171; h=from:from:sender:sender:reply-to: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; bh=gMjVUGvAC6CrigvKZPDMz9shOnvHWcWqrZBYRtALBXU=; b=tG8Ac91hQOs338uHUIoDR41XCZcLp78CaLclTr5+4JUj7jpv0kGwnUMtwwcd4oPE/5hkHk QgTzMn81LdoOJwR+SFyJ1J5HpUYUPWxYaBWB3RvAdGS+TqNRvGlA/oQxEn3Up/3NTNVTgj qUwBnrtZeEQfRVI0u15tw0j1qv6/fEqCUZgMB0w6PKW73cXi7fcbuvxxb26Tjio8H3XCon q9WA+EujQUNM53nBEe45AJxGhbRHt+TcrlM1kQqnKWLRdRVB7RNCOUiaTvujRum1yTDZg/ +mgLenXoBY/xbTd1ixO5cBPy/33HT7Rcb6tQYIlOmM8uTA6zqud12Yd7n/uEVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652281171; a=rsa-sha256; cv=none; b=KxGZGOG5iVv2dRjf0WMEgBQ+4Vw2H3hL6eM9AhKwH5j2DqslpNH10piPYsTvwBBSB8+aek yws8bm0hxNZswrcshNFTaVRdIalx7k/S+r2xhDphHryf19UieXxVdvUYG6UNZR2SwW8Wgr g/xPz3ga4HxUC4EByGNT5cQsLLONu0Xjjm6kp2d+wN2xcJz/Yn5YWK3U5do5r1/+Ru8znQ 5ovylSWkMiQbQ8zq0isQNlV+dNTcup9ISIJRYhbbBTYfllfygyfZJnSMKABJOMKwrEJmba 2Poz0eTOxzDaGfCyq+suqQEAliVPjBgslKHWiz+RcdSjrEg1r7xby37aoIYN8A== 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.01 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: A543813BAE X-Spam-Score: -3.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: b147EZkVrO8R 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 ...)) Everything run fine now with *guix system reconfigure /.config/guix/system.scm* Best Le 11/05/2022 à 16:36, Sébastien Rey-Coyrehourcq a écrit : > Hi, > > Thanks Julien, > > I see on the doc that *sudo* run command as user and not as root like > other 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 > when i need or not) for running *guix* command. > > About the commands with /.config/guix/channels.scm (see content here > https://paste.debian.net/1240553)  : > > a) *guix describe* and *sudo guix describe* and *sudo -E guix > describe* return > > Génération 7    11 mai 2022 16:01:25    (actuelle) >   guix d24ad39 >     URL du dépôt : https://git.savannah.gnu.org/git/guix.git >     branche : master >     commit : d24ad3949127a938cad306f0524c120afe5e2e4f > > b) *guix system describe* return > > > Génération 7    10 mai 2022 12:39:34    (actuelle) >   nom de fichier : /var/guix/profiles/system-7-link >   nom de fichier canonique : > /gnu/store/az1ff4ll80dbrbkayc4y0jqgnc2m37mp-system >   étiquette : GNU with Linux 5.17.5 >   chargeur de démarrage : grub-efi >   périphérique racine : /dev/mapper/cryptroot >   noyau : > /gnu/store/0ffifgs0ixgz0bf1pcahkfdkx9f7h720-linux-5.17.5/bzImage >   canaux : >     nonguix: >       URL du dépôt : https://gitlab.com/nonguix/nonguix >       branche : master >       commit : 1de0c32142c54bc73af5556d5e45c77152b31f0f >     guix: >       URL du dépôt : https://git.savannah.gnu.org/git/guix.git >       branche : master >       commit : d775a24344d4a910f6a19072c595bdafcf104b6f >   fichier de configuration : > /gnu/store/idr8ds86m69gbx217g5h3qm6m353wliz-configuration.scm > > c) *guix home describe* return > > > Génération 1    10 mai 2022 16:59:14    (actuelle) >   nom de fichier : /var/guix/profiles/per-user/reyman/guix-home-1-link >   nom de fichier canonique : > /gnu/store/3q599hyjkx8c5ywsdy2gqfmx2bjzgzmm-home >   canaux : >     flat: >       URL du dépôt : https://github.com/flatwhatson/guix-channel.git >       branche : master >       commit : 094746c1e2e90f2df1e598ab1fd0abb4d75ce84d >     guix: >       URL du dépôt : https://git.savannah.gnu.org/git/guix.git >       branche : master >       commit : 0f705472126f7b935e0783bcd8fec831b7a0593b >   fichier de configuration : > /gnu/store/ip90ffd0bzlr7j6kw5ky2pgxpyq1x23c-configuration.scm > > With jpoiret, i try to resolve the issue on chat, i also try to run > manually *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 à 12:47, Julien Lepiller a écrit : >> Hi Sébastien, >> >> 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 explain 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 >> sudo on step 5. Mayée that's why it fails? >> >> I would run sudo guix describe 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ébastien Rey-Coyrehourcq" >> wrote: >> >>     Hi Guix people :) >> >>     I'm starting guix, picking information when needed into >> documentation. >> >>     I'm facing difficulties with channels.scm since i start using >> "guix home", i read the doc page, but i need some other things to >> understand. >> >>     Here my logic to start just after install : >> >>     1 - I modify my //etc/guix/channels.scm/ file to add some modules >> : /nonguix/ (my computer don't work well without) and >> /emacs-native-dep/ from flatwhatson flat channel. >> >>     2 - I /guix -E guix system reconfigure /etc/config.scm/, /guix >> pull/, and everything goes well >> >>     3 - Like explained in the doc, I run /guix home import >> ~/src/guix-config /that generate /a //home-configuration.scm// >>     / >> >>     /4 - /Into /home-configuration.scm///i add the package htop and >> /emacs-native-comp/ >> >>     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 reconfigure ~/src/guix-config/home-configuration.scm/ >> >>     6 - Everything goes well, emacs-native-dep compile during 1 hour, >> problems arrive after that. >> >>     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 (nongnu 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. / >>     / >> >>     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) >> >>     - /guix home reconfigure ~/src/guix-config/home-configuration.scm/ >> >>     - /guix system reconfigure ~/.config/guix/system.scm/ >> >>     - /guix system reconfigure ~/etc/guix/config.scm/ >> >>     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.scm/ file to repair that ? >> >>     For example, /guix system//describe/ and /guix home describe/ and >> /guix describe/ return all different channel referenced, how i manage >> that ? >> >>     I suppose there is a "workflow to use well guix home"? 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. >> >>     Thanks a lot for your help. >> ------------------------------------------------------------------------ >>     Sebastien Rey-C >> >> >>     // >>