From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8H2YK0D3EmSlAAEASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 12:02:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iKabK0D3EmRbswAA9RJhRA (envelope-from ) for ; Thu, 16 Mar 2023 12:02:24 +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 8B8B02278A for ; Thu, 16 Mar 2023 12:02:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pclMz-0006p5-Ny; Thu, 16 Mar 2023 07:02:05 -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 1pclMx-0006ov-8t for guix-patches@gnu.org; Thu, 16 Mar 2023 07:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pclMw-0006Qs-6T for guix-patches@gnu.org; Thu, 16 Mar 2023 07:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pclMw-0007jM-1t for guix-patches@gnu.org; Thu, 16 Mar 2023 07:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61483] [PATCH 0/5] Some basic Home Shepherd Services Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Mar 2023 11:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61483 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Janneke Nieuwenhuizen Cc: 61483@debbugs.gnu.org Received: via spool by 61483-submit@debbugs.gnu.org id=B61483.167896447929639 (code B ref 61483); Thu, 16 Mar 2023 11:02:02 +0000 Received: (at 61483) by debbugs.gnu.org; 16 Mar 2023 11:01:19 +0000 Received: from localhost ([127.0.0.1]:41324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pclMF-0007hz-1L for submit@debbugs.gnu.org; Thu, 16 Mar 2023 07:01:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pclMD-0007hm-Kb for 61483@debbugs.gnu.org; Thu, 16 Mar 2023 07:01:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pclM7-0006M9-Ih; Thu, 16 Mar 2023 07:01:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=X3gRXM1Yvy/f5xL9kl9Q4zKzJTwJ2jBPMcx3FV5xD/E=; b=M+3BPQZz3BKP73VG2fM2 z/Tv0CBWD9aTkNNl+7JDFr61doRkh4b8PAdubrVEF3fGQWKYUxP/jG39wPtD4yescXTyNOIoK/2a/ KJWd6GvszgK0g2Y4OiJAbICeBml/by8R2vu38dLZFm0QA09O7kHc4j/7rWYcRHkUdAjOVo71T4WoP p590GnnFjbZxuQJTCh3FQJiR8IWVYCqT++JC/6bYoT0NWisrpmhxIWteqwtR5D7ZH1loFbj/gQJg2 yHCf1//F0qToTaZ3KGWqvHlbc5C/XSh5h79o59ExsjN4wZ6y+koM4Ev2Sbx5mNRL9aRsFgthQADzr ZPcRFVtLOJefqQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pclM7-0000ZF-5i; Thu, 16 Mar 2023 07:01:11 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230213164642.24419-1-janneke@gnu.org> <20230305181305.30992-1-janneke@gnu.org> Date: Thu, 16 Mar 2023 12:01:08 +0100 In-Reply-To: <20230305181305.30992-1-janneke@gnu.org> (Janneke Nieuwenhuizen's message of "Sun, 5 Mar 2023 19:13:03 +0100") Message-ID: <87h6ulgdu3.fsf_-_@gnu.org> 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 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=M+3BPQZz; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678964544; a=rsa-sha256; cv=none; b=L653ATaT72CQBVLrB2l2oZMGDo9YSdHtY/whLcaT0DXacf8ur3WX9jCdSH8L1ForEqTA/w uQbeK6/6z35xuMDcpZCVnxwNgU5jVw3OSyY2d5M4LhY6tCi+dLcJO6zlz6nJyG2WzCSzHI ABdhKB8u7hg9kxTojnzsTFcIQ5FicDHfItfY9Tw9yaNOZdVM0aVDwLtj7CDdXgvySk751Z AMDwR/hOhbhC15M6zuT0dwU7vwdObLnL4SLwDP//msa2pxH1q/wa3Z4XyYsVT+wHwshamO xQiXWX2W+m79JEnGX44omiCZ41Iep5jfSYQiXRC2rGZOYt//jaZBCF1XV7moLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678964544; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=X3gRXM1Yvy/f5xL9kl9Q4zKzJTwJ2jBPMcx3FV5xD/E=; b=c9yDKMbrf9+M3lUfEUuYNBxPqgnZdrqx3+pya4sxfmmeF9QFahuaQF0mmUGSzsgGQSF8pX 3ui/n96Zt9MtWC4RDrhyC9GbU/wPD24o5MgagxIYg4kL/Zr5IoBU1Kp5UNmnaLl4qAgU2b OadUWFVCwm0hnlnjkn7bW4Fr3mpXkleJs4wclfaODPx+jDyzuyhHzyhfat9I35ZdfZc2On dD65Qgcr7I/BHYoi4LGGqfaiYc1xhU7qq3wor7M3SQafac5PvCqmIdWOjeW30H2a69Gaxo hLbkQAOPfek4rgaLhL+6PtwhgcrEaUufDMGqgeZMNrAAzyLTzRLc1G1sLtxXBQ== X-Migadu-Spam-Score: -4.14 X-Spam-Score: -4.14 X-Migadu-Queue-Id: 8B8B02278A X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=M+3BPQZz; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: /b5t6eiADX4h Hi, Janneke Nieuwenhuizen skribis: > From: "Janneke Nieuwenhuizen" > > * gnu/home/services/ssh.scm: (): New type. > (home-ssh-agent-services): New procedure. > (home-ssh-agent-service-type): New variable. > * doc/guix.texi (Secure Shell): Document it. Applied! > +When using the @code{home-ssh-agent-service-type}, you need to add your > +@file{~/.bash_profile}: > + > +@example > +SSH_AUTH_SOCK=3D$@{XDG_RUNTIME_DIR-$HOME/.cache@}/ssh-agent/socket > +export SSH_AUTH_SOCK > +@end example > + > +Of course, you can do that using the @code{home-bash-service-type}, by > +adding something like: > + > +@lisp > +(environment-variables > + '(("SSH_AUTH_SOCK" > + . "$@{SSH_AUTH_SOCK-$@{XDG_RUNTIME_DIR-$HOME/.cache@}/ssh-agent/socket@= }"))) > +@end lisp Maybe we should automate that by having =E2=80=98home-ssh-agent-service-typ= e=E2=80=99 extend =E2=80=98home-environment-variables-service-type=E2=80=99? That way= it=E2=80=99d work out-of-the-box regardless of the shell being used. Thanks, Ludo=E2=80=99.