From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +GdGBN7rB2SjEQEASxT56A (envelope-from ) for ; Wed, 08 Mar 2023 02:58:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CIlHBN7rB2Q8NwAA9RJhRA (envelope-from ) for ; Wed, 08 Mar 2023 02:58:54 +0100 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 A4EE2E726 for ; Wed, 8 Mar 2023 02:58:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZj4c-000812-5s; Tue, 07 Mar 2023 20:58:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZj4b-00080s-2B for help-guix@gnu.org; Tue, 07 Mar 2023 20:58:33 -0500 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZj4X-0003rU-Pm for help-guix@gnu.org; Tue, 07 Mar 2023 20:58:32 -0500 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 522A038A087A; Wed, 8 Mar 2023 01:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1678240699; bh=rv8fuxu/BCYPslV8pyN194RlInNq5N+uqxtwRbO2NtE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=rFBH5zp8GU3eWsuVj5jY+wwDatM0BDCEO1WLMTvaTzbY0hQaTN8+dFjjfVPsKcWxa VUXP33D7ZFUaYQ0shReWn8/zIsRQktmGcshYQ6YuxDhg4ouQKycWWzw0ebSvP86urM emJWO+CUnkZT7twtYdejcRvJe/JLnSORLQRpJGZmqLIJf1FzmRrrFAk8ZZF9Z/wtow 7NbfD33dPO2nOEExFjz9v5NNBnDA39Pm0yacvqZnoMzPb3+3bSWdBzusjUUNwiovCw wQzrskYohTL17SSrlYMGxJZGNtplYq2NlF1FFj9iDZa38D2Iqks5QuZNUAoLvzJX4s 3pOK9BIMWloqlQb207IejYCKi4jxsDmeeSEspM5Q+T4Tfc+43otQhp+QqfRF5VTLLT tX5oMxtHkVA38FTyH6jVv0NYUJ+zm/5xmyX+VHk5VdMeMbre9wecJQ2OfN+KeL4e8L a3B/ZlqSnsN5gXonuIrDlKeKpGC5YH13rPX8wjfROvC0wXCe8US1amLMUHyWfpufxQ 8fZBFVhZvmQMqPUSrjOL1rlxbVAN7AE9DoQsVUVvjhGSznEfD1GfSrpIjkG7TyAdNt 6xrJIdb4yy/13Zs9bwiySav++NpO8X35Tu0mXD2LtzHuC/eosM91ywriCwGiMi//Dz sDf/sOuyj5Ntim23s/LT6leo= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vHMbHfZOUKpo; Wed, 8 Mar 2023 01:58:15 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Wed, 8 Mar 2023 01:58:14 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id f37ee184; Wed, 8 Mar 2023 01:58:36 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: Gottfried Cc: Gary Johnson , help-guix@gnu.org Subject: Re: Help-Guix Digest, Vol 88, Issue 4 References: <82e1b04c-c8e1-ccfc-04c7-2cfe61fec850@posteo.de> <87ilfe4p4q.fsf@disroot.org> <951e1a3f-5b70-b3c9-0fb8-7e324528d88d@posteo.de> Date: Wed, 08 Mar 2023 09:58:36 +0800 In-Reply-To: <951e1a3f-5b70-b3c9-0fb8-7e324528d88d@posteo.de> (gottfried@posteo.de's message of "Tue, 7 Mar 2023 16:15:03 +0000") Message-ID: <87v8jc2ecz.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678240732; 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=rv8fuxu/BCYPslV8pyN194RlInNq5N+uqxtwRbO2NtE=; b=JxQsLS8OiH4+MCO2NLOAKIvs6ThQDgjl8jfCEvLeCg8UQPqapUwT6qdEXdLXwoxfU74ayW kkFExdbXNmu6SbVpo1xXK8tdCAjl2dpu7RmzCYohipQTHky4p1uz/PfWfbEcImT0BbEXbp oLtZT+ZClHExB6JMij/f1gdTeN+rN1giZkf/Ckb4jhAH6yW+89wYOt9d8Sfq2gnijmW9dS n9aEm86nGptgmkuaq1eWVfgoXXxU1z8PGuS8xl3qKmOmtXCJtKPaInkssyXzv8rWgmLzgd 0xDNkbTItkYYraAjydW05qShcsv0OzyL4clTXpA7cJ+qhh3flwd5+ZOukYuRNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=envs.net header.s=modoboa header.b=rFBH5zp8; 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"; dmarc=pass (policy=quarantine) header.from=envs.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678240732; a=rsa-sha256; cv=none; b=TRnOfmo7AuM7BBBJ05/r13fu1bU0supz2rd5fvCDG1/C2p2H1fYQ1tq0eP+QMrYvG59uqD cTphFB4x+IXmsoy+ZEp67YdNWlcMihLXsbLqL/+w2r1k/q525wWfiVAHYisPUZn9dqMQ2h HelIQwWvD4Tqt8m5811v2dA3NgjoT6EQAX26XERjzMLASGrbPqtAczg8ezzWT7AIN6GGRU Pnp5KDDBoa/Kz2ZhZeEU8TeCzX8VjipLIu//T871CIpeNZmHNaAPnMpbDIpBt9vZssp9+r iAeOmQ3UeXM/9WAKzuhVTZjiwLMj24XvSgsQJyHZiZxGxd/ekLGQr2mxEDD6cw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=envs.net header.s=modoboa header.b=rFBH5zp8; 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"; dmarc=pass (policy=quarantine) header.from=envs.net X-Migadu-Spam-Score: -4.65 X-Spam-Score: -4.65 X-Migadu-Queue-Id: A4EE2E726 X-Migadu-Scanner: scn1.migadu.com X-TUID: 68SWr2TSjmQs Gottfried writes: > Hi, Hello! > 1. >> GUIX_PROFILE=3D"~/guix-profiles/emacs/emacs" >>> . "$GUIX_PROFILE"/etc/profile > > As unexperienced in Scheme I am asking > if the second line beginning with the "dot" is separated for easier > read, but everything is one command? Those 2 line are bash commands, GUIX_PROFILE=3D"~/guix-profiles/emacs/emacs" will set a shell variable GUIX_PROFILE with a value of "$HOME/guix-profiles/emacs/emacs". . "$GUIX_PROFILE"/etc/profile will 'source' the /etc/profile in the $GUIX_PROFILE directory. You can find them in 'info bash' at: "5 Shell Variables" and "4.1 Bash Shel= l Builtins". > > 2. > I have got already many packages in my profile and > updating takes a long time. > > So I am thinking of splitting of some packages to create several > profiles and AFAIU updating with > sudo guix system reconfigure /etc/config.scm > it will take less time because it will not automatically update all my > profiles at once. (Is this right?) Yes, the system profile (via config.scm) and user profile already do a split, and you can split the user profile into multiple profiles for more control. See 'info guix-cookbook' for "Guix Profiles in Practice". > > 3. > I was creating a profile with "Musescore" > and a profile with "Emacs". > I want to create still other profiles. No problem. > > 4. > Now I still don=E2=80=99t understand everything concerning profiles. > If I enable all profiles at login time > how will it work? Enable a profile mean source ('.' command in your first question) its profile file to add its search-paths to the current shell environment: PATH for making binaries from profiles's bin directory available to the current shell. MANPATH for making manpages from profile's share/man dinectory available to the current shell's 'man' command. XDG_DATA_DIRS for making desktop applicatinons available to the current desktop environment (launcher, etc). And so on... > How can I enter the different profiles? If you enable all at login time (via ~/.bash_profile), there is no need to switch. If you didn't enable a profile, you can switch it with 'guix shell -p' or '.' its profile. > How do I know in which profile I am and to switch to an other? You can run 'env' find out what profiles are activated now. > > e.g. I have emacs installed in my main profile. > I have got a manifest with emacs with additional emacs packages. > When entering this separate profile with guix shell > I get to guix shell (env)... > but when I entered: "emacs" > it opened emacs with the package "Icicles" which I don=E2=80=99t have in = my > emacs manifest, only in my emacs in the main profile. > So I concluded, it is the emacs in my main profile and not the one in > my emacs manifest profile. > How are both connected? Are they separated? Run 'which emacs' return the emacs executable location, it maybe the one in your main profile or the emacs profile. There are some environment variables / search-paths (EMACSLOADPATH) for emacs, emacs will load its packages from this EMACSLOADPATH. When combine profiles via source ('.') the search-paths are merged (see 'export' in the 'profile' bash script), so they're connected via those search-paths. They can also be separated if you don't combine those search-paths. eg: via 'guix shell --pure -p ...' > But this emacs manifest doesn=E2=80=99t have a init.el file etc. Emacs's init.el are at ~/.emacs.d/init.el (or ~/.emacs), it's out of guix's control, so shared with every emacs. > May be profiles are not completely separated in Guix like I understood > until now. Well, you can combine them (by default the system profile and user profile are combined), or use them in a separated way. Basic are shell, environment variables, and the effects of environment variables. Hope this helps!