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 SEKvNFLFGWTrMgAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 15:55:14 +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 kEOYNFLFGWS4TgAA9RJhRA (envelope-from ) for ; Tue, 21 Mar 2023 15:55:14 +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 A7789F9A0 for ; Tue, 21 Mar 2023 15:55:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pedNq-00061I-Nr; Tue, 21 Mar 2023 10:54:42 -0400 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 1pedNp-000619-BY for help-guix@gnu.org; Tue, 21 Mar 2023 10:54:41 -0400 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 1pedNn-0000jG-Bj for help-guix@gnu.org; Tue, 21 Mar 2023 10:54:41 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EBEA141571; Tue, 21 Mar 2023 15:54: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 kerxS1hmGFYz; Tue, 21 Mar 2023 15:54:35 +0100 (CET) References: <82e1b04c-c8e1-ccfc-04c7-2cfe61fec850@posteo.de> <87ilfe4p4q.fsf@disroot.org> <1ebe7b6b-d5d1-5f5f-8688-35f2556e6a3f@posteo.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1679410475; bh=Gpw8IT4njt0WCEvkHosmgiMSPcGmWXwp1COPr9cEglo=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=M26VF9sVnwMai/EBeemK965cCgp+S1bgyw+hYEWqiNCzDht15+4AwN/OxfcuVxvIu avJq2dNA2425kD1tGCu/QE+Qsd/b43yKtEWiHAb8LvbZUStEgdNc9K4v2yb4yP3H5t PfFwnPq9KvmOQ4tFzyGM9XacxQ79jqTZBN0uOphN+6JJYUEGrfAVwmv8IvW5R9GYTv XCtksfW5I39Z2mDXSC2xTxls5Rk1b3b3QDlJP1n5EQHk088RopXLWTLpt3C9M/hCRU 1IVglg67PHxVDR5mceKWO7HbqIfyP+dynGuuggGGN9qHeENK71FaZE9mOzIZpyZe+H cIcgeByYi4+Ig== Date: Tue, 21 Mar 2023 10:42:56 -0400 From: Gary Johnson To: Gottfried Cc: help-guix@gnu.org Subject: Re: Help-Guix Digest, Vol 88, Issue 4 In-reply-to: <1ebe7b6b-d5d1-5f5f-8688-35f2556e6a3f@posteo.de> Message-ID: <87v8iui28p.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679410514; a=rsa-sha256; cv=none; b=rVQEs3F/2NlIBjwlD2luKlco4KCfhA8dTB0wUdPnlU3szQKuXe2B88inbuPebrAy4GgPCZ uJYUSG7RhfyZ+FpAKQVwK1aQvTxA58TtO8nwe+keFQbXUPBR0oOGb9tShsSExFEV/ovCOr NWCV8ncsMpoRgdFhrHFVQHAR7h61t5clvWDnadYJMr+v0gIu9NXNLBsydPg7KiptRMoaFx M7v73dKPBiLN3s7WqTTOgXnpis9HSBpxz2U2Qg81XoA0dsxlMhOTGBV+RFFw9e8L1JAms4 yeDzSXXxFkWEDXHsYjvNV7fryJfAbKxJ5qRxu0+BlXf3QbfoYZ/c/CouwOkZhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=M26VF9sV; dmarc=pass (policy=reject) header.from=disroot.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679410514; 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=dC0qQJ8vKABKufpfuy2YOe6dbrLKTJuRXyiof7qNwKU=; b=k23uAR/HWd6mMNRfQMerrbIire9eG981jqgmwNqigi2LFYQwziL1zaO2vUZB9qfa2lZ0dB lgeREViplVk9ATkXm8VNzT1XilfvMll7alWnhUenHTnU78/b84W4KcTuSOyrQ6hr6bNywW LfKraslKcZQOJbU+BQfyf/lN+xtMNkkZPAc7O+rDsfxUjt5kte2FMdd0Xes5S/DdyQlYwQ tDcxqXZsz2xn8GLE13vgYrRboGf/yE/Mmrb/ImkBmdj2JxZw/W6xEvZcTMftwRcMF6ZsP2 iTWDpYmwYdfbD7iwXqL3tq5TIYk22v4iP96QTtH2CO6e6I/yWzYirG0W8wvlgg== X-Migadu-Spam-Score: -6.46 X-Spam-Score: -6.46 X-Migadu-Queue-Id: A7789F9A0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=M26VF9sV; dmarc=pass (policy=reject) header.from=disroot.org; 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-Scanner: scn1.migadu.com X-TUID: 1QYQttkM0F4p Gottfried writes: > I have got now 3 profiles: EmacsManifest, Musescore, Musik > in: home/gfp/Projekte/ > > Now I want them to be activated at login time. > > I still am not sure how to do that. To activate multiple profiles at login time, I created a shell script called `~/sys/scripts/activate-profiles.sh`, containing the following code: ``` #!/bin/sh GUIX_PROFILES=3D/home/gjohnson/sys/guix/profiles for dir in $GUIX_PROFILES/* do name=3D$(basename "$dir") profile=3D$dir/$name if [ -f "$profile"/etc/profile ] then GUIX_PROFILE=3D"$profile" . "$GUIX_PROFILE"/etc/profile export MANPATH=3D"$GUIX_PROFILE/share/man${MANPATH:+:}$MANPATH" export INFOPATH=3D"$GUIX_PROFILE/share/info${INFOPATH:+:}$INFOPATH" fi unset profile unset name done ``` Next, I added a `source` line to my `~/.bash_profile` file, which loads the `activate-profiles.sh` script when I enter a login shell. This script is also run when you log in to your graphical desktop session in Guix. ``` # Activate all of my Guix profiles source ~/sys/scripts/activate-profiles.sh ``` For you to use this approach, you should do the following: 1. Replace `GUIX_PROFILES=3D/home/gjohnson/sys/guix/profiles` in my `activate-profiles.sh` script with your profile directory, which seems to be this: `GUIX_PROFILES=3D/home/gfp/Projekte` 2. Place the `activate-profiles.sh` script somewhere in your home directory. 3. Replace `~/sys/scripts/activate-profiles.sh` in `~/.bash_profile` with the path to `activate-profiles.sh` on your system. If you use `guix home`, you can certainly add the `source` line to `~/.bash_profile` that way. > 2. after that, could I uninstall the package emacs in my main profile? > Will my Emacs-manifest profile still be usable/is it independent, or > it will suffer through uninstalling emacs in my main profile? With this code in place, whenever you log in to your machine, you will have access to all the packages in your main user profile as well as all the packages in your /home/gfp/Projekte profiles. Note that this may lead to unpredictable behavior if you have the same package installed into multiple profiles that are all activated simultaneously. My recommendation is that you install each package into only one profile when using this approach. > My aim was to uninstall packages in my main profile and put them in > separate profiles, so in updating my main profile with less packages > it doesn=E2=80=99t take so much time. Yes, that is precisely the purpose of this approach. 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