Message ID | 20230213164642.24419-1-janneke@gnu.org |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E6BFE166AE; Mon, 13 Feb 2023 16:47:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 77AF116661 for <patchwork@mira.cbaines.net>; Mon, 13 Feb 2023 16:47:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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" <janneke@gnu.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Feb 2023 16:47:01 +0000 Resent-Message-ID: <handler.61483.B.167630681114432@debbugs.gnu.org> 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 <janneke@gnu.org> 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 <debbugs-submit-bounces@debbugs.gnu.org>) 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 <janneke@gnu.org>) 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 <janneke@gnu.org>) 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 <janneke@gnu.org>) 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 <janneke@gnu.org>) id 1pRbyX-0000x5-Ix; Mon, 13 Feb 2023 11:46:45 -0500 From: "Jan (janneke) Nieuwenhuizen" <janneke@gnu.org> 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Some basic Home Shepherd Services
|
|
Message
Janneke Nieuwenhuizen
Feb. 13, 2023, 4:46 p.m. UTC
From: "Janneke Nieuwenhuizen" <janneke@gnu.org>
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
Comments
Jan (janneke) Nieuwenhuizen writes: > 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? Okay, after playing with this some more using a clean account all seems to work fine. Apparently there was some weird interaction with my current shepherd-service setup interacted. Greetings, Janneke
Howdy! "Jan (janneke) Nieuwenhuizen" <janneke@gnu.org> skribis: > 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? I am! :-) Possible reasons not all the services described there made it into Guix Home: (1) needs vary :-), (2) it’s possible to migrate incrementally, with some things handled with Home while others are still managed “the old way” (that’s what I do), and (3) rde is kinda “competing” with Home by providing a whole bunch of services, giving less of an incentive to migrate them (it’s an unfortunate issue we identified at the time Home got merged). But with contributions like these, the situation will improve! > 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. Nice. Ludo’.
Ludovic Courtès writes: Hey! > "Jan (janneke) Nieuwenhuizen" <janneke@gnu.org> skribis: > >> 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? > > I am! :-) Oh, good. I'v been tempted for quite a while and will try to switch when this patch series goes in. I'll be moving bits the executable/configuration bits (that are without secrets) from my home.git to guix-home. > Possible reasons not all the services described there made it into Guix > Home: (1) needs vary :-), yeah...could be I'm the only one using kodi and znc, but I expected ssh-agent to be kinda popular... > (2) it’s possible to migrate incrementally, > with some things handled with Home while others are still managed “the > old way” (that’s what I do), That sounds like a stategy I'll be following too > and (3) rde is kinda “competing” with Home by providing a whole bunch > of services, giving less of an incentive to migrate them (it’s an > unfortunate issue we identified at the time Home got merged). Ouch, why that's...terrible? Is there any reason stuff is not contributed "up stream"? ;) > But with contributions like these, the situation will improve! Yay! Let's go for that, then. Greetings, Janneke