From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2ETyNpZp6mNKbAEAbAwnHQ (envelope-from ) for ; Mon, 13 Feb 2023 17:47:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UFKuNpZp6mOwkgAAauVa8A (envelope-from ) for ; Mon, 13 Feb 2023 17:47:18 +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 B4CF923876 for ; Mon, 13 Feb 2023 17:47:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRbyt-0005h9-NA; Mon, 13 Feb 2023 11:47:08 -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 1pRbyq-0005gr-9s for guix-patches@gnu.org; Mon, 13 Feb 2023 11:47:04 -0500 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 1pRbyo-0004fQ-AM for guix-patches@gnu.org; Mon, 13 Feb 2023 11:47:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRbyo-0003l9-1K for guix-patches@gnu.org; Mon, 13 Feb 2023 11:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61483] [PATCH 0/5] Some basic Home Shepherd Services Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Feb 2023 16:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61483 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61483@debbugs.gnu.org Cc: Janneke Nieuwenhuizen X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167630681114432 (code B ref -1); Mon, 13 Feb 2023 16:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2023 16:46:51 +0000 Received: from localhost ([127.0.0.1]:51331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRbyd-0003ki-8y for submit@debbugs.gnu.org; Mon, 13 Feb 2023 11:46:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:47588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRbyZ-0003kW-8T for submit@debbugs.gnu.org; Mon, 13 Feb 2023 11:46:49 -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 1pRbyZ-0005Bg-1q for guix-patches@gnu.org; Mon, 13 Feb 2023 11:46:47 -0500 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 1pRbyY-0004cb-7U; Mon, 13 Feb 2023 11:46:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=fmwXT+B4CaM4n59QpjQ5u37pro/cmkNV9C/6zI4zhiI=; b=b+Fl6a/Euag5LZ 32wMsuiI1B3h8HI3CcWP4t003VWoITI7Q/+cqZrR4VD4isS5J6wbAXX+/TikSjx1a3qBw+CCfXMaf Cm8GSWxnmNfV1NiVo8tZQe7ipOjp2qn4NF0MsHpGWpu9abYfrsPA4xQ9El09GDbra+S0oxylgKUhX fUcIXD7FP5mr2q9prYr/uhT3RvHfAi+hx+DqQ1Cr5DzicJdgNdec7TXO/Z+8AtJF5rLUWST9Dt8dK FR2PRrzIzftGkQuuxhlEa19SgfDZXKS9rOW4MRyTEGr9TA7wKanJ1yg1aPPXjE+M31fvfgSkGHm2B hNQezKxWYDgOCuWwZRnw==; Received: from 2a02-a462-da03-1-2701-7f81-a736-4607.fixed6.kpn.net ([2a02:a462:da03:1:2701:7f81:a736:4607] helo=drakenpad.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.90_1) (envelope-from ) id 1pRbyX-0000x5-Ix; Mon, 13 Feb 2023 11:46:45 -0500 From: "Jan (janneke) Nieuwenhuizen" Date: Mon, 13 Feb 2023 17:46:42 +0100 Message-Id: <20230213164642.24419-1-janneke@gnu.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Seal: i=1; s=key1; d=yhetil.org; t=1676306838; a=rsa-sha256; cv=none; b=qxk2dSmTOj1C5IiRpBACSaQLGr3oBrAH8vNeFnAkjDHuTgVTPQtI0q8r6TuZdU84QPDmo4 x0aX/nhlTrUhEYUBj3SJTxLu+91Fk0fGhhiRCOMv9uSuS34q98UTl2Fn/JIQ0B89bakDEq XtV8CrlfV72Q44n10RvejeIz1rT4NmvA7LFkZLqR7yaZp/f0BamHomcUeblqiGtAMQ2NL5 +PAShGK+BlBShghYuB+ftSPwZpdfHD2YxQ5LPn1hHwJXKKfTXpFxO+mmEsYfwuF+WQLagn O6T8JBJxAno7ZCzLeJyo+V/6EINETsPYd59oWkF8mgWTztW7Vw+/hoOX6nNvLg== 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="b+Fl6a/E"; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676306838; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=fmwXT+B4CaM4n59QpjQ5u37pro/cmkNV9C/6zI4zhiI=; b=aV9GV4Ae9IvuKNRBnjn/YspWoW1PPDrLN2KOVIGogPYvmY79QqNR/IUPP/PwYjkLdcLq+7 6mTBYzIE8Tzi2IxubpkvwfFMcOfTWztUBsyaljatr9V9K80Mna5yE2bfzXmB3CdsXEhtd1 RoddQzEXPdJjRwYdS4rArl7yakXRqYhZlkc035jH2TUXJWIfKhO7aM8mFQzbZEYQ57SKnN fKLxmjCArk3rNTJ41xokTte1CbbDDwnocADzeMyHu3afG0vTEaUUkkN5R24gyyyw0DyHH3 vx+Qta3xt2TyshMNbfAHYH1p9uXCR4R6PzpG/o+sB7HuVOus5gsxAWq4vo1nsA== X-Migadu-Spam-Score: -2.52 X-Migadu-Scanner: scn1.migadu.com X-Spam-Score: -2.52 X-Migadu-Queue-Id: B4CF923876 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="b+Fl6a/E"; 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: XB/L/Rf+XGwi From: "Janneke Nieuwenhuizen" Hi! I've been waiting for Guix Home to offer some basic shepherd services for most used daemons, replacing the neat shepherd hack described in https://guix.gnu.org/en/blog/2020/gnu-shepherd-user-services/ that I've been using, and am a bit puzzled as to why this didn't happen. Are people using Guix Home? Anyway, here's my attempt to address this, adding ssh-agent, git-daemon, and also the probably less-used kodi and znc that I use on my home server. To add a git-daemon and ssh-agent to your guix home profile, you need a home-configuration.scm that has something like this: --8<---------------cut here---------------start------------->8--- (use-modules (gnu home) (gnu home services shells) (gnu home services shepherd) (gnu home services shepherd-xyz) (gnu packages) (gnu packages base) (gnu services) (guix gexp)) (services (list (service home-shepherd-service-type) (service home-git-daemon-service-type) (service home-ssh-agent-service-type))) --8<---------------cut here---------------end--------------->8--- The weird thing is that after running ./pre-inst-env guix home reconfigure home-configuration.scm the shepherd starts automatically, starting ssh-agent and git-daemon. Upon a fresh login, however, it seems the shepherd must still be started manually, kind of defeating its purpose as a home service... Thoughts? Greetings, Janneke Also pushed to https://gitlab.com/janneke/guix/-/commits/wip-home/ Janneke Nieuwenhuizen (5): DRAFT gnu: home: services: Add home-git-daemon-service-type. DRAFT gnu: home: services: Add home-ssh-agent-service-type. DRAFT gnu: home: services: Add home-znc-service-type. DRAFT gnu: home: services: Add home-kodi-service-type. DRAFT doc: Document Home Shepherd Services. doc/guix.texi | 90 ++++++++++- gnu/home/services/shepherd-xyz.scm | 239 +++++++++++++++++++++++++++++ gnu/local.mk | 3 +- 3 files changed, 330 insertions(+), 2 deletions(-) create mode 100644 gnu/home/services/shepherd-xyz.scm -- 2.38.1