From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <help-guix-bounces+larch=yhetil.org@gnu.org> Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iBBcEITTwGX4ywAA62LTzQ:P1 (envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>) for <larch@yhetil.org>; Mon, 05 Feb 2024 13:24:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iBBcEITTwGX4ywAA62LTzQ (envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>) for <larch@yhetil.org>; Mon, 05 Feb 2024 13:24:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=hcezx6bv; 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=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707135876; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6jEzPLKw05x1kIP85nBuqIowemrlmkdDYo0tY9tEJ6Y=; b=ddoyCu5rFWKyCPEIVMq3JN1wsck/S6WVbh2Uut7N99UNOzxmlUaMC0C16I6/cinu8jz78N YWXBVRsyYl64VBtdpDfXJEvAaxkYlUd5tiSozVQMybb+n7sY2C40lyWmi6QRDv6EWrnGaG W387dcmrImcEUw+/bU4hXfF77E8cld7oel+OoybNYpEDW/Xxb1n79EHrMVG0G0Zxd3GKfh iHftTvzKU5Nt8HzUarYI2cW8kRap+fYLH+rh++vqzd6PetReC0HN4PPrfUmPH4IOR7MZEd gbrBw5KRQ6wbgNC0IcXsySGhHSjDQA4rwMRlIP2Vde/jYhvoS5b+kLk+5Zmjuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=hcezx6bv; 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=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707135876; a=rsa-sha256; cv=none; b=a77CzyZn4XkGzrFUuG8+rq7m3JNuKVoZL8gs8wLA7aCFXQlGz3hLDGkCaciIhJA6sIivgW yrwOq6eCEBF1iUo10bjnB8ddM1g2zTLqA4ghYmfRBqa5dXZ5GstD+bbkj6+k57YhXizX/0 BeJspuDGIzoZElyvTpyUJjIuEIN+t5SqANBauT+3WlvFfdM9VeGg21MGRarrXnOT3kEwn4 zBEV13C2AMiTZ/xDu9dI+43yf2r+0H6aQc0iYhCqidDzwfVvksVKH/imTz61CgzA5YSwPv MllZ1aScQeaDVkZUALX/V7Mbfu9PozBMksGEGNwMa2CySPrdrNiGeGkfF2NwoQ== 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 D94D644667 for <larch@yhetil.org>; Mon, 5 Feb 2024 13:24:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <help-guix-bounces@gnu.org>) id 1rWy0r-0005YQ-JO; Mon, 05 Feb 2024 07:23:55 -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 <andrew.stubbs@gmail.com>) id 1rWy0a-0005WX-Nh for help-guix@gnu.org; Mon, 05 Feb 2024 07:23:33 -0500 Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <andrew.stubbs@gmail.com>) id 1rWy0T-0003eF-Ky for help-guix@gnu.org; Mon, 05 Feb 2024 07:23:27 -0500 Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-7ce4512d308so1638602241.1 for <help-guix@gnu.org>; Mon, 05 Feb 2024 04:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707135800; x=1707740600; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6jEzPLKw05x1kIP85nBuqIowemrlmkdDYo0tY9tEJ6Y=; b=hcezx6bvyGATFbcfg5qWLH8JfXibllBkSatjNVwLQpSt57clNM02Oiakp0tcgqVglI 22XnwT+XjZnWIBjTSRWEw2m7/J87LOkJEjNMpD80Tse094W4w30grtq5eaqstllWN497 T+SlhhnSD730MIkrMgixQWcyvyw0RKFWFL+T/daBkWHJJNJRIBOha7KuInEcn+xtgDIk 3jEQwPQm3qjxdeehqGuOSlTHqdddib9C+FcQsv5wW6i7b+B36nhvrZvEAcs8HrrKMTFG Hu8O1p3kMP7eiS29Dl2PsxsblZctj5ejBP+83xyrG50LJwR7EoZWHTd9TBiAdtYG1VD7 yQjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707135800; x=1707740600; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6jEzPLKw05x1kIP85nBuqIowemrlmkdDYo0tY9tEJ6Y=; b=Gs5mMmWvyfRQF+ucIGpL9LuTKIdNDN+Htgsyu+PAwfClsecCOvItwpSiwQS0BGsn5O 2a030pKpa7PdUwsnxPac5RSMHYLLG3BCn1CRwddqqqmVSW2BZrlpJa9R0aLmUg5g+U5H tj5xBQzUlZWHAcV9ZNOep0sD7kocwhsK+C++u2/L3UlntTyVPR0252Ea9sOq55WyZzoR DC2eqwL5zoNW7bieI26HIn7D9+wfqYBSKZ2sKMALP9dgSEAVcqVm6AIg5SzheweIiyFi 9AR/3hGy8XOpN2zdRldnESCaPeTcEch0W20mhHxBzHjiNqFurpo032mLsInlOtSOpJG0 EFzg== X-Gm-Message-State: AOJu0YwsaneDM9Ao20P8zQIywj02OAF1TKARD+pX7PODDvZzUBTPxtrW 08xU3BUS85WcHvmNaWHgbNKP323ZwVDJ7Swm2YrCWdvXv/G5uy3sNb0Eni7T475jkUaUBBFM0qJ t9NS5FJy+YmsM0UkX+K6yA14Iutbp6sAaZcU= X-Google-Smtp-Source: AGHT+IEUnnJSzqkFperA+JjKlYOlhCYo3BbV0aWKjSvioxj+Fs5gpgLvVCHt7QF9keoiNxbA0WhUSDwdh0gxPClyfGQ= X-Received: by 2002:a05:6102:323b:b0:46d:1d91:ad9b with SMTP id x27-20020a056102323b00b0046d1d91ad9bmr2427115vsf.13.1707135799772; Mon, 05 Feb 2024 04:23:19 -0800 (PST) MIME-Version: 1.0 References: <CAC1cuBQPahJF2mFxJouVSdoRURNaxUC=koPweccBmWo35oO3Lg@mail.gmail.com> <87plxbd9tj.fsf@zancanaro.id.au> In-Reply-To: <87plxbd9tj.fsf@zancanaro.id.au> From: Andrew Stubbs <andrew.stubbs@gmail.com> Date: Mon, 5 Feb 2024 12:23:08 +0000 Message-ID: <CAC1cuBSRbZsrxfrSiCXQ=68_T5Cktv24mz2+jGXesP7K2kbgkg@mail.gmail.com> Subject: Re: Adding shell commands the .profile with guix home To: Carlo Zancanaro <carlo@zancanaro.id.au> Cc: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::92e; envelope-from=andrew.stubbs@gmail.com; helo=mail-ua1-x92e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: <help-guix.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>, <mailto:help-guix-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/help-guix> List-Post: <mailto:help-guix@gnu.org> List-Help: <mailto:help-guix-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>, <mailto:help-guix-request@gnu.org?subject=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 X-Migadu-Spam-Score: -8.60 X-Migadu-Queue-Id: D94D644667 X-Spam-Score: -8.60 X-Migadu-Scanner: mx11.migadu.com X-TUID: 6FzvlZtzJb/B Thanks, this is what I needed. Can we get something like this example added to the manual? I now see that the bash example is similar, but this stuff was really not obvious to me. The "type text-config" is also presented, throughout the manual, entirely without explanation, but maybe that would be clear to me if I knew more about scheme/guile? Thanks again Andrew On Mon, 5 Feb 2024 at 00:38, Carlo Zancanaro <carlo@zancanaro.id.au> wrote: > > HI Andrew, > > On Thu, Feb 01 2024, Andrew Stubbs wrote: > > The manual suggests that "home-shell-profile-configuration" is the way > > to go, but there's no example given. > > The home-shell-profile-service-type is the way to go, but due to the way > the service is included (as an essential service), you need to add items > to the configuration using a service extension. > > > What's the correct way to do this, please? > > The example you provided might look like this instead: > > (simple-service 'sourcing-xprofile home-shell-profile-service-type > (list (plain-file "shell-profile" "echo hi; source ~/.xprofile"))) > > The items of the list can be any "file-like" gexp (e.g. the results of > local-file, mixed-text-file, file-append). > > I hope that helps, > > Carlo