From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 gB0SMupIBWREZQEAbAwnHQ (envelope-from ) for ; Mon, 06 Mar 2023 02:59:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6GolMupIBWRCPgEA9RJhRA (envelope-from ) for ; Mon, 06 Mar 2023 02:59:06 +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 013A53F103 for ; Mon, 6 Mar 2023 02:59:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ07f-0007bK-O7; Sun, 05 Mar 2023 20:58:43 -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 1pZ07e-0007RA-9E for help-guix@gnu.org; Sun, 05 Mar 2023 20:58:42 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZ07b-0003Xd-Re for help-guix@gnu.org; Sun, 05 Mar 2023 20:58:42 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 47D404206C; Mon, 6 Mar 2023 02:58:36 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4IShtYjaDUaP; Mon, 6 Mar 2023 02:58:34 +0100 (CET) References: <82e1b04c-c8e1-ccfc-04c7-2cfe61fec850@posteo.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678067914; bh=nOqZC3YX2kzXhIbVSgGuHf584fWp+9/ekNhYhQ8qvr0=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=W37UgGKaGQ/lTVcwkWGMWEmI61sjLuWruGwLmrhAmKp01zVMZd3RrmLP+/wpL+cwI 4D65oJyT+VlTScou/r+3NLwbUkgBBgUaD9bya0RHQbZ0qN30sjEtBh9yiNmpgLnKEt JtpWC+REX7b1VXpX5FoACMyEFPySBQQZT2f3M571k2wtx/vMbGtVb5DZE6s8YDR8wz qEw5L/SCssz/GPmmpSAkStOHxSLL/xPbvg2kEAa7kgYjGp5cNhEhdAyFYADfjwA2wx z1g2+FaiB1ioXB8Yg982wS2qD7UI+IgGqhtfFH+g5MGbJGVx9uZQsJZnKqU6NBfw5q CaZ3PoamvBGxQ== Date: Sun, 05 Mar 2023 20:35:25 -0500 From: Gary Johnson To: Gottfried Cc: help-guix@gnu.org Subject: Re: Help-Guix Digest, Vol 88, Issue 4 In-reply-to: <82e1b04c-c8e1-ccfc-04c7-2cfe61fec850@posteo.de> Message-ID: <87ilfe4p4q.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org 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 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678067946; 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=HJHT1nEg1gbOlxqpf828IDdciYzKuUejurFPYU4B7Fc=; b=TI7nyPN7CJC/JZKwa/o2Rzx16T2pDpE3fRown1bm1ww8vEzV25LKn55p+yzmL62X9b/u3L wjAOFi/kXt4SoGZ0cK0Dw0R1Sk8sRKaNc5Zkg4QZbVmhJUIhGpZ0i9JKwhdsXrOtkWE9Ck DzyAN5es5JbmE+MJjRFMMtwNobOimFaW8Ed8PYlJ4kbPzXU6e1k2AYBw7eEfUuUoytPyQg rYLIhsOVoAulO9tDMHdb+nJ31Ijp6Sni9lOFgKQyKk8iRH98QCKRoc54MeGV0ewvVv/JTB vuifRNFzJfGuClUjlU1oKJUfa87J8c7oP9ldU/L0zhmidh/r660oXvZ59MKfVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=W37UgGKa; 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=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678067946; a=rsa-sha256; cv=none; b=Z5hZoKRuNG6H7bVRCFgQmYnbqJQHlqqODU0eitBs/nZWT4gS3ejvOGmJyrXesxTHFu8Fvx 3lmPqSASUXM4uCQgi8O9WcJhCXssly4UswEk8ewbwF2lUXVm7N4YBNpxYQMKWBtdl27fgk UdIG0/30JLh6APEOV6sEULLRmLL5Z7dix4hua6eWh4eyOPjiMuyza59wYSuDQ0/lMowPdb JTtJm64nAuUWuCXfxqBkfhPKd/8poVotEO5SSNltQSwvVoB4ZyCrkXKqFeK2HfhT0emWI+ xJDA6Ze3IP86XuCpdKgxJR39vf0xX4wXSK/4z5bRAaDUs5oJHQigs7K0lOkBRg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.43 X-Spam-Score: -6.43 X-Migadu-Queue-Id: 013A53F103 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=W37UgGKa; 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=reject) header.from=disroot.org X-TUID: n+L8ZRWeElZr Gottfried writes: > thank you very much for sharing your Emacs manifest. > > I tried to do what you said. > > I created a manifest for Emacs only. > > After doing it, Guix asked me to set the PATH. > > I did it and after that this Emacs Manifest changed my general profile. > It became my general profile. > I couldn=E2=80=99t use my other programmes any more. > So I had to do a rollback. > > 1. I don=E2=80=99t know what I did wrong. You didn't do anything wrong. The command I provided will create the next generation of your profile from the manifest file. Any packages not included in the manifest will be missing from that generation. It sounds like that's what happened in this case. If you want other packages installed into your profile as well, you could add them to your manifest file. > 2. AFAIK to create a manifest is not yet a profile. > I have to create a manifest and then to create a profile with it. > Am I right? Correct. A manifest is a file of Scheme code that lists the packages which you would like to install into a profile (or environment). (Well, technically the manifest is the Scheme object produced by that code, but in practice we can think of the file as the manifest with little loss of information.) You can create a temporary environment which contains the packages in a manifest with this command: ``` guix shell -m manifest.scm ``` To make this environment persistent, you have to create a profile like so: ``` guix package -m manifest.scm ``` > 2. If so, after creating a manifest, which commands do I have to use to > make it a separate profile? > > Probably to generate a manifest and make it a separate profile goes > together, but I don=E2=80=99t know how to do it. Note that `guix package` will create a new profile generation in your user profile by default. To override this, you can specify a different profile that you want the generation added to instead: ``` guix package -m manifest.scm -p $YOUR_NEW_PROFILE_DIR ``` One of the perhaps slightly odd things to remember with this command is that $YOUR_NEW_PROFILE_DIR should repeat its final directory name twice. Here's an example for creating a new emacs profile. In this setup, we assume that you have the following directory structure in your home directory: ~/ =E2=94=9C=E2=94=80=E2=94=80 guix-manifests/ =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 emacs.scm =E2=94=9C=E2=94=80=E2=94=80 guix-profiles/ =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 emacs/ You would issue the following command to install a new profile generation under the ~/guix-profiles/emacs/ directory, containing all the packages defined in ~/guix-manifests/emacs.scm: ``` guix package -m ~/guix-manifests/emacs.scm -p ~/guix-profiles/emacs/emacs ``` To activate this profile (thereby making its contents available in your shell environment), you would issue these commands: ``` GUIX_PROFILE=3D"~/guix-profiles/emacs/emacs" . "$GUIX_PROFILE"/etc/profile export MANPATH=3D"$GUIX_PROFILE/share/man${MANPATH:+:}$MANPATH" export INFOPATH=3D"$GUIX_PROFILE/share/info${INFOPATH:+:}$INFOPATH" ``` For ease of use, you should place this code in your ~/.bash_profile. In this way, the profile will be activated at login time (for example, through GDM) and will then be available in all of your shells as well as any other programs that respect the environment variables you set (e.g., emacs). Have fun and happy hacking! ~Gary --=20 Protect yourself from surveillance: https://emailselfdefense.fsf.org =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html