From patchwork Thu Feb 16 15:53:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 47008 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6F9AE16914; Thu, 16 Feb 2023 15:55:59 +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 351141690B for ; Thu, 16 Feb 2023 15:55:57 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSgbA-0001bt-Ie; Thu, 16 Feb 2023 10:55:04 -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 1pSgb8-0001aj-HI for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:02 -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 1pSgb8-000227-6w for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSgb8-0007qz-01 for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61483] [PATCH v2 1/5] DRAFT gnu: home: services: Add home-git-daemon-service-type. References: <20230213164642.24419-1-janneke@gnu.org> In-Reply-To: <20230213164642.24419-1-janneke@gnu.org> Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Feb 2023 15:55:01 +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: 61483@debbugs.gnu.org Received: via spool by 61483-submit@debbugs.gnu.org id=B61483.167656285030100 (code B ref 61483); Thu, 16 Feb 2023 15:55:01 +0000 Received: (at 61483) by debbugs.gnu.org; 16 Feb 2023 15:54:10 +0000 Received: from localhost ([127.0.0.1]:37438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaH-0007pP-OR for submit@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaC-0007oR-Lw for 61483@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:08 -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 1pSga6-0001p2-NS; Thu, 16 Feb 2023 10:53:58 -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=pa+fxN2A/m3+RqloYeCX7v3Qw/e+gOXV+Vz535mw9+I=; b=gdfQyDUZ4hM8sT zx3AGey6q3si1hZcbfoXoy5cnbpNtc1gz9XkH9U9CZDp3w88XAsacMhLfnXRJw3GQXoo8Hvkmfbdx +09LG1KSbVcgyBxLWpVJ2Now6roo0vfjOXpMjR13cDuY9Cnb3CoYgrtOTFpQwA81Q0FoWvWf9qTiT J1p4E1n2ppCX0S4t3lnqu5/ooQQBo93Sv+zTH6p+K4j8H3s4zrI6mAwpEaDo80gE/LaQuTH8CdsVa fVcrCl7H9n+1cMeqxxDEBECQGGWf8qHCP7fpx/NNcFYU0gHbE/B1m51DquEmzjQ4wMaZkkBGvy0Wf rBNiGvDtpPWhW+fABbLA==; 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 1pSga6-0005sK-AV; Thu, 16 Feb 2023 10:53:58 -0500 From: "Jan (janneke) Nieuwenhuizen" Date: Thu, 16 Feb 2023 16:53:51 +0100 Message-Id: <20230216155355.11106-1-janneke@gnu.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/home/services/shepherd-xyz.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/home/services/shepherd-xyz.scm | 122 +++++++++++++++++++++++++++++ gnu/local.mk | 3 +- 2 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 gnu/home/services/shepherd-xyz.scm diff --git a/gnu/home/services/shepherd-xyz.scm b/gnu/home/services/shepherd-xyz.scm new file mode 100644 index 0000000000..4d84008dae --- /dev/null +++ b/gnu/home/services/shepherd-xyz.scm @@ -0,0 +1,122 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Janneke Nieuwenhuizen +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu home services shepherd-xyz) + #:use-module (srfi srfi-26) + + #:use-module (ice-9 match) + + #:use-module (shepherd support) + + #:use-module (gnu home services) + #:use-module (gnu home services shepherd) + #:use-module (gnu packages version-control) + #:use-module (gnu services configuration) + #:use-module (gnu services shepherd) + #:use-module (guix records) + #:use-module (guix gexp) + + #:export (home-git-daemon-configuration + home-git-daemon-service-type)) + +;;; Commentary: +;; +;; Home Services for the Shepherd. +;; +;; Example configurations. +;; +;; Git daemon: use $HOME/src as the base directory. +;; +;; (service home-git-service-type +;; (home-git-configuration +;; (root (string-append (getenv "HOME") "/src")))) +;; +;;; Code: + +;;; +;;; Directories. +;;; +(define %user-data-home + ;; Default cache directory if shepherd is run as a normal user. + (string-append (or (getenv "XDG_DATA_HOME") + (string-append user-homedir "/.local/share")))) + +(define %user-log-dir + ;; Default log directory if shepherd is run as a normal user. + (string-append (or (getenv "XDG_DATA_HOME") + (string-append user-homedir "/.local/var/log")))) + + +;;; +;;; Git daemon. +;;; +(define-record-type* + home-git-daemon-configuration make-home-git-daemon-configuration + home-git-daemon-configuration? + (git home-git-daemon-git ;file-like + (default git)) + (root home-git-daemon-root ;string + (default (string-append %user-data-home + "/git-daemon"))) + (export-all? home-git-daemon-export-all? ;boolean + (default #f)) + (listen home-git-daemon-configuration-listen ;list of string + (default '())) + (port home-git-daemon-configuration-port ;number | #f + (default #f)) + (whitelist home-git-daemon-configuration-whitelist ;list of string + (default '())) + (extra-options home-git-daemon-extra-options ;list of string + (default '()))) + +(define (home-git-daemon-services config) + "Return a for a git daemon with CONFIG." + (match config + (($ + git root export-all? listen port whitelist extra-options) + (let* ((git (file-append git "/bin/git")) + (command `(,git + "daemon" + ,(string-append "--base-path=" root) + ,@(if export-all? + '("--export-all") + '()) + ,@(map (cute string-append "--listen=" <>) listen) + ,@(if port + `(,(string-append + "--port=" (number->string port))) + '()) + ,@extra-options + ,@whitelist)) + (log-file (string-append %user-log-dir "/git-daemon.log"))) + (list (shepherd-service + (documentation "Run the git daemon.") + (provision '(git-daemon)) + (start #~(make-forkexec-constructor '#$command + #:log-file #$log-file)) + (stop #~(make-kill-destructor)))))))) + +(define home-git-daemon-service-type + (service-type + (name 'home-git-daemon) + (default-value (home-git-daemon-configuration)) + (extensions + (list (service-extension home-shepherd-service-type + home-git-daemon-services))) + (description + "Install and configure the git-daemon as a shepherd service."))) diff --git a/gnu/local.mk b/gnu/local.mk index 7278c50e4f..134b81f24f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -11,7 +11,7 @@ # Copyright © 2016 Ben Woodcroft # Copyright © 2016, 2017, 2018, 2019 Alex Vong # Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner -# Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Jan (janneke) Nieuwenhuizen +# Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Jan (janneke) Nieuwenhuizen # Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice # Copyright © 2017, 2018 Clément Lassieur # Copyright © 2017, 2020 Mathieu Othacehe @@ -94,6 +94,7 @@ GNU_SYSTEM_MODULES = \ %D%/home/services/pm.scm \ %D%/home/services/shells.scm \ %D%/home/services/shepherd.scm \ + %D%/home/services/shepherd-xyz.scm \ %D%/home/services/ssh.scm \ %D%/home/services/mcron.scm \ %D%/home/services/utils.scm \ From patchwork Thu Feb 16 15:53:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 47004 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DCC5216919; Thu, 16 Feb 2023 15:55:17 +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=ham 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 478641690B for ; Thu, 16 Feb 2023 15:55:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSgbB-0001ca-QV; Thu, 16 Feb 2023 10:55:05 -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 1pSgb9-0001bG-JQ for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:03 -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 1pSgb9-00022S-7N for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSgb8-0007rE-UH for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61483] [PATCH v2 2/5] DRAFT gnu: home: services: Add home-ssh-agent-service-type. Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Feb 2023 15:55: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: 61483@debbugs.gnu.org Received: via spool by 61483-submit@debbugs.gnu.org id=B61483.167656285130115 (code B ref 61483); Thu, 16 Feb 2023 15:55:02 +0000 Received: (at 61483) by debbugs.gnu.org; 16 Feb 2023 15:54:11 +0000 Received: from localhost ([127.0.0.1]:37442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaI-0007pZ-Rs for submit@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaC-0007oS-R5 for 61483@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:08 -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 1pSga7-0001pO-JG; Thu, 16 Feb 2023 10:53:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=L+lo8S04XJBPLC5vtryLUI7wdCr9sa161XSGtkC+sn8=; b=sHpDL1LD4irO+NJXEJ/0 nTeLR5qsMdC6Bf/pNiMHEjIcabTSnloWer4Xwp3Qz3pWmQP3iFCQi2DsDi9rqC9tHpphAqyrE3Xin BplKiR3E73b7UMmvxHTDcADK2zY6J78aShwz2vE0p67qlVgihQE1awNhrDhYYDLLdY7uyJBXwVMrK eVvfnwL2l8rrt4tIpL6YaPTgtdSKd5b941JXGM1lWjKonzmC5EH3PurnJgKSzux9bVJWgNiIvJuH9 WkDmqnhakvh+2WMPgWPk6+UsTLw4M2u8MWtP9jDHCraSD1vQYWS8iaW/jePBRzTHdHnZS0RbNHrYR L04sTp2NgLar8g==; 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 1pSga6-0005sK-Tn; Thu, 16 Feb 2023 10:53:59 -0500 From: "Jan (janneke) Nieuwenhuizen" Date: Thu, 16 Feb 2023 16:53:52 +0100 Message-Id: <20230216155355.11106-2-janneke@gnu.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230216155355.11106-1-janneke@gnu.org> References: <20230216155355.11106-1-janneke@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/home/services/shepherd-xyz.scm (): New type. (home-ssh-agent-services): New procedure. (home-ssh-agent-service-type): New variable. --- gnu/home/services/shepherd-xyz.scm | 60 +++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/gnu/home/services/shepherd-xyz.scm b/gnu/home/services/shepherd-xyz.scm index 4d84008dae..75f3770ffc 100644 --- a/gnu/home/services/shepherd-xyz.scm +++ b/gnu/home/services/shepherd-xyz.scm @@ -25,6 +25,7 @@ (define-module (gnu home services shepherd-xyz) #:use-module (gnu home services) #:use-module (gnu home services shepherd) + #:use-module (gnu packages ssh) #:use-module (gnu packages version-control) #:use-module (gnu services configuration) #:use-module (gnu services shepherd) @@ -32,7 +33,9 @@ (define-module (gnu home services shepherd-xyz) #:use-module (guix gexp) #:export (home-git-daemon-configuration - home-git-daemon-service-type)) + home-git-daemon-service-type + home-ssh-agent-configuration + home-ssh-agent-service-type)) ;;; Commentary: ;; @@ -46,6 +49,15 @@ (define-module (gnu home services shepherd-xyz) ;; (home-git-configuration ;; (root (string-append (getenv "HOME") "/src")))) ;; +;; Ssh-agent +;; +;; Add to your ~/.bash_profile: +;; +;; SSH_AUTH_SOCK=${XDG_RUNTIME_DIR-$HOME/.cache}/ssh-agent/socket +;; export SSH_AUTH_SOCK +;; +;; (service home-ssh-agent-service-type) +;; ;;; Code: ;;; @@ -120,3 +132,49 @@ (define home-git-daemon-service-type home-git-daemon-services))) (description "Install and configure the git-daemon as a shepherd service."))) + + +;;; +;;; Ssh-agent. +;;; +(define-record-type* + home-ssh-agent-configuration make-home-ssh-agent-configuration + home-ssh-agent-configuration? + (openssh home-ssh-agent-openssh ;file-like + (default openssh)) + (socket-dir home-ssh-agent-socket-dir ;string + (default (string-append %user-runtime-dir "/ssh-agent"))) + (extra-options home-ssh-agent-extra-options ;list of string + (default '()))) + +(define (home-ssh-agent-services config) + "Return a for an ssh-agent with CONFIG." + (match config + (($ + openssh socket-dir extra-options) + (let* ((ssh-agent (file-append openssh "/bin/ssh-agent")) + (socket-file (string-append socket-dir "/socket")) + (command `(,ssh-agent + "-D" + "-a" ,socket-file + ,@extra-options)) + (log-file (string-append %user-log-dir "/ssh-agent.log"))) + (list (shepherd-service + (documentation "Run the ssh-agent.") + (provision '(ssh-agent)) + (start #~(lambda _ + (unless (file-exists? #$socket-dir) + (mkdir-p #$socket-dir) + (chmod #$socket-dir #o700)) + (fork+exec-command '#$command #:log-file #$log-file))) + (stop #~(make-kill-destructor)))))))) + +(define home-ssh-agent-service-type + (service-type + (name 'home-ssh-agent) + (default-value (home-ssh-agent-configuration)) + (extensions + (list (service-extension home-shepherd-service-type + home-ssh-agent-services))) + (description + "Install and configure the ssh-agent as a shepherd service."))) From patchwork Thu Feb 16 15:53:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 47007 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 509871691A; Thu, 16 Feb 2023 15:55:59 +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=ham 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 E57F916914 for ; Thu, 16 Feb 2023 15:55:57 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSgbA-0001bq-DV; Thu, 16 Feb 2023 10:55:04 -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 1pSgb9-0001b0-4R for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:03 -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 1pSgb8-00022F-My for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSgb8-0007r6-Fw for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61483] [PATCH v2 3/5] DRAFT gnu: home: services: Add home-znc-service-type. Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Feb 2023 15:55: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: 61483@debbugs.gnu.org Received: via spool by 61483-submit@debbugs.gnu.org id=B61483.167656285130108 (code B ref 61483); Thu, 16 Feb 2023 15:55:02 +0000 Received: (at 61483) by debbugs.gnu.org; 16 Feb 2023 15:54:11 +0000 Received: from localhost ([127.0.0.1]:37440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaI-0007pR-CX for submit@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaD-0007oT-48 for 61483@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:08 -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 1pSga7-0001pl-TK; Thu, 16 Feb 2023 10:53:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=hB0p3TfSrAjUVBANcBO1gggY14jVh5JP0QxcBCvsizw=; b=a2/rCF0DgWufX5QbVPOp 19a26uJAbK8VmByu+wI2u5pYndASUjgvEle+Ewwf2aOkFhNSVHxu5w6bBINfi1qJ7KoyNWaFM41zU z3NKdx2W8aOgbH4mR+0ahJFOVsc98caOQt449yMFr++rXNNvCwhm/eZorqvuU096B9P3kwzzcyp8x KettEAMRI/7HKkjxqK723U8rIwxRoyrLoK84ao89vwvjlni0QLXIVfrSr0ZRmiV/Db7RqDFD6qxsp /ZsGYJIWZvVlKc3H/APLEH+/6IgaLz5ILA2OtYrLgJ7o0R5Sc/DDyxVarlo/cdBizXFokcuFDWEpk 7Uw8S6zBJdZfkg==; 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 1pSga7-0005sK-Gd; Thu, 16 Feb 2023 10:53:59 -0500 From: "Jan (janneke) Nieuwenhuizen" Date: Thu, 16 Feb 2023 16:53:53 +0100 Message-Id: <20230216155355.11106-3-janneke@gnu.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230216155355.11106-1-janneke@gnu.org> References: <20230216155355.11106-1-janneke@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/home/services/shepherd-xyz.scm (): New type. (home-znc-services): New procedure. (home-znc-service-type): New variable. --- gnu/home/services/shepherd-xyz.scm | 43 +++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/gnu/home/services/shepherd-xyz.scm b/gnu/home/services/shepherd-xyz.scm index 75f3770ffc..856a5e7246 100644 --- a/gnu/home/services/shepherd-xyz.scm +++ b/gnu/home/services/shepherd-xyz.scm @@ -25,6 +25,7 @@ (define-module (gnu home services shepherd-xyz) #:use-module (gnu home services) #:use-module (gnu home services shepherd) + #:use-module (gnu packages messaging) #:use-module (gnu packages ssh) #:use-module (gnu packages version-control) #:use-module (gnu services configuration) @@ -35,7 +36,9 @@ (define-module (gnu home services shepherd-xyz) #:export (home-git-daemon-configuration home-git-daemon-service-type home-ssh-agent-configuration - home-ssh-agent-service-type)) + home-ssh-agent-service-type + home-znc-configuration + home-znc-service-type)) ;;; Commentary: ;; @@ -178,3 +181,41 @@ (define home-ssh-agent-service-type home-ssh-agent-services))) (description "Install and configure the ssh-agent as a shepherd service."))) + + +;;; +;;; Znc. +;;; +(define-record-type* + home-znc-configuration make-home-znc-configuration + home-znc-configuration? + (znc home-znc-znc ;string + (default znc)) + (extra-options home-znc-extra-options ;list of string + (default '()))) + +(define (home-znc-services config) + "Return a for znc with CONFIG." + (match config + (($ znc extra-options) + (let* ((znc (file-append znc "/bin/znc")) + (command `(,znc + "--foreground" + ,@extra-options)) + (log-file (string-append %user-log-dir "/znc.log"))) + (list (shepherd-service + (documentation "Run the znc IRC bouncer.") + (provision '(znc)) + (start #~(make-forkexec-constructor '#$command + #:log-file #$log-file)) + (stop #~(make-kill-destructor)))))))) + +(define home-znc-service-type + (service-type + (name 'home-znc) + (default-value (home-znc-configuration)) + (extensions + (list (service-extension home-shepherd-service-type + home-znc-services))) + (description + "Install and configure znc as a shepherd service."))) From patchwork Thu Feb 16 15:53:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 47006 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 25CF816914; Thu, 16 Feb 2023 15:55:37 +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 56AD01690B for ; Thu, 16 Feb 2023 15:55:36 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSgbB-0001cb-Qk; Thu, 16 Feb 2023 10:55:05 -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 1pSgb9-0001bS-VM for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55: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 1pSgb9-000254-KP for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSgb9-0007rL-E4 for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61483] [PATCH v2 4/5] DRAFT gnu: home: services: Add home-kodi-service-type. Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Feb 2023 15:55:03 +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: 61483@debbugs.gnu.org Received: via spool by 61483-submit@debbugs.gnu.org id=B61483.167656285130123 (code B ref 61483); Thu, 16 Feb 2023 15:55:03 +0000 Received: (at 61483) by debbugs.gnu.org; 16 Feb 2023 15:54:11 +0000 Received: from localhost ([127.0.0.1]:37444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaJ-0007pg-BN for submit@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaD-0007oV-NI for 61483@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:09 -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 1pSga8-0001qx-G9; Thu, 16 Feb 2023 10:54:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=SVGJG9C3NNPuEt13r6+srnkyIjOsnCOaX/DbtFNKPA0=; b=TW2V+XJEN76rD+Hffw3L 9VZLjTOmNCTXI5nHt+mdOmNwy2gj/OkMEhm0a14UQ9SbXuSUh8GcqcEm2aZrssCDlI3onE5cJQ6qm HrEgGv44KIZ7oQBdMd3RJyqkMbFTgxC4jNOXMslWpdWOsjC5O4c4NZMZZinKskeqwuop8kIAf+SHB Lns/GuUyJelZPn0oymnXc7s1NLGPQeYHEL6k6fudXnV4yiorjqY9VNcJOevRREADJ+HmniEhoJbMH Mv6ue46NBsHUOSH8Xx05K1yg7HLGvbcjy8F+xVScqBCSbwGBM0f+ZFIUt4UzMuvOlV2gPfSQYh+ua fEaq8IxNjouY5w==; 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 1pSga8-0005sK-3W; Thu, 16 Feb 2023 10:54:00 -0500 From: "Jan (janneke) Nieuwenhuizen" Date: Thu, 16 Feb 2023 16:53:54 +0100 Message-Id: <20230216155355.11106-4-janneke@gnu.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230216155355.11106-1-janneke@gnu.org> References: <20230216155355.11106-1-janneke@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/home/services/shepherd-xyz.scm (): New type. (home-kodi-services): New procedure. (home-kodi-service-type): New variable. --- gnu/home/services/shepherd-xyz.scm | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/home/services/shepherd-xyz.scm b/gnu/home/services/shepherd-xyz.scm index 856a5e7246..f5bedf60c7 100644 --- a/gnu/home/services/shepherd-xyz.scm +++ b/gnu/home/services/shepherd-xyz.scm @@ -25,6 +25,7 @@ (define-module (gnu home services shepherd-xyz) #:use-module (gnu home services) #:use-module (gnu home services shepherd) + #:use-module (gnu packages kodi) #:use-module (gnu packages messaging) #:use-module (gnu packages ssh) #:use-module (gnu packages version-control) @@ -35,6 +36,8 @@ (define-module (gnu home services shepherd-xyz) #:export (home-git-daemon-configuration home-git-daemon-service-type + home-kodi-configuration + home-kodi-service-type home-ssh-agent-configuration home-ssh-agent-service-type home-znc-configuration @@ -136,6 +139,44 @@ (define home-git-daemon-service-type (description "Install and configure the git-daemon as a shepherd service."))) + +;;; +;;; Kodi. +;;; +(define-record-type* + home-kodi-configuration make-home-kodi-configuration + home-kodi-configuration? + (kodi home-kodi-kodi ;file-like + (default kodi)) + (extra-options home-kodi-extra-options ;list of string + (default '()))) + +(define (home-kodi-services config) + "Return a for kodi with CONFIG." + (match config + (($ kodi extra-options) + (let* ((kodi (file-append kodi "/bin/kodi")) + (command `(kodi + "-fs" + ,@extra-options)) + (log-file (string-append %user-log-dir "/kodi.log"))) + (list (shepherd-service + (documentation "Run the kodi media center.") + (provision '(kodi)) + (start #~(make-forkexec-constructor '#$command + #:log-file #$log-file)) + (stop #~(make-kill-destructor)))))))) + +(define home-kodi-service-type + (service-type + (name 'home-kodi) + (default-value (home-kodi-configuration)) + (extensions + (list (service-extension home-shepherd-service-type + home-kodi-services))) + (description + "Install and configure kodi as a shepherd service."))) + ;;; ;;; Ssh-agent. From patchwork Thu Feb 16 15:53:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 47005 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D625F16919; Thu, 16 Feb 2023 15:55:32 +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=ham 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 982031690B for ; Thu, 16 Feb 2023 15:55:31 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSgbB-0001cH-57; Thu, 16 Feb 2023 10:55:05 -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 1pSgbA-0001br-EX for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55: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 1pSgbA-00028f-5B for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSgb9-0007rU-Qb for guix-patches@gnu.org; Thu, 16 Feb 2023 10:55:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61483] [PATCH v2 5/5] DRAFT doc: Document Home Shepherd Services. Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Feb 2023 15:55:03 +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: 61483@debbugs.gnu.org Received: via spool by 61483-submit@debbugs.gnu.org id=B61483.167656285230129 (code B ref 61483); Thu, 16 Feb 2023 15:55:03 +0000 Received: (at 61483) by debbugs.gnu.org; 16 Feb 2023 15:54:12 +0000 Received: from localhost ([127.0.0.1]:37446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaJ-0007pq-Pp for submit@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSgaF-0007oZ-Ib for 61483@debbugs.gnu.org; Thu, 16 Feb 2023 10:54:09 -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 1pSga9-0001rO-3P; Thu, 16 Feb 2023 10:54:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=Nn7j/M8bUio0dzRQN4+NLfKH4ZNvCjPyZRnn3dgIYeI=; b=BN9cq9jhIbcgQ09fL78a npPojfd9LvJ0f9vNmE5+Xl7fsmfP6F5JoFcChNywcNCsqd0AkQ1KpL+SVvjAc4JLsgBO/StBuoIQJ ijU9GQepVP/iJWXzWSIPzRyqHSzrOLaW1EDQemoVnFtrP7bsadbVa51jBoBhSbYjCQeo2SGqXSB6G CPqJdvPNKPd1uqFqPl8Nkh5vTeZ98uAznq1x/otSX0c15ubWNDCU1l6NFNQ+d8UDuZoDqjt5zqggC QX/XwNf4dbvs7lJrXOGqG+Sf8B7F+JtrDmrwsv6r5RCcJFtdrwy8Bl0O4+ERIDjnEYYY8Im1KggeP yCW2X5VGmu8Ftw==; 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 1pSga8-0005sK-Ma; Thu, 16 Feb 2023 10:54:00 -0500 From: "Jan (janneke) Nieuwenhuizen" Date: Thu, 16 Feb 2023 16:53:55 +0100 Message-Id: <20230216155355.11106-5-janneke@gnu.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230216155355.11106-1-janneke@gnu.org> References: <20230216155355.11106-1-janneke@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * doc/guix.texi (Shepherd Home Services): New subsubsection. --- doc/guix.texi | 124 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 123 insertions(+), 1 deletion(-) diff --git a/doc/guix.texi b/doc/guix.texi index 784114f0bb..a5a62010b6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -36,7 +36,7 @@ Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner@* Copyright @copyright{} 2016 John Darrington@* Copyright @copyright{} 2016, 2017 Nikita Gillmann@* -Copyright @copyright{} 2016, 2017, 2018, 2019, 2020 Jan Nieuwenhuizen@* +Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2023 Jan Nieuwenhuizen@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Julien Lepiller@* Copyright @copyright{} 2016 Alex ter Weele@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Christopher Baines@* @@ -41285,6 +41285,128 @@ mechanism instead (@pxref{Shepherd Services}). @end table @end deftp +@menu +* Shepherd Home Services:: +@end menu + +@node Shepherd Home Services +@subsubsection e Shepherd Home Services + +The @code{(gnu home services shepherd-xyz)} module provides serveral +home shepherd services. + +@defvr {Scheme Variable} home-git-daemon-service-type +This is the type of the @code{git daemon} home service, whose value is an +@code{home-git-daemon-configuration} object. +@end defvr + +@deftp {Data Type} home-git-daemon-configuration +Available @code{home-git-daemon-configuration} fields are: + +@table @asis +@item @code{git} (default: @code{git}) (type: file-like) +The git package to use. + +@item @code{root} (default: @file{@env{XDG_DATA_HOME}/git-daemon}) (type: string) +The git deamon's base directory. + +@item @code{export-all?} (default: @code{#f}) +Whether to allow access for all Git repositories, even if they do not +have the @file{git-daemon-export-ok} file. + +@item @code{base-path} (default: @file{/srv/git}) +Whether to remap all the path requests as relative to the given path. +If you run @command{git daemon} with @code{(base-path "/srv/git")} on +@samp{example.com}, then if you later try to pull +@indicateurl{git://example.com/hello.git}, git daemon will interpret the +path as @file{/srv/git/hello.git}. + +@item @code{user-path} (default: @code{#f}) +Whether to allow @code{~user} notation to be used in requests. When +specified with empty string, requests to +@indicateurl{git://host/~alice/foo} is taken as a request to access +@code{foo} repository in the home directory of user @code{alice}. If +@code{(user-path "@var{path}")} is specified, the same request is taken +as a request to access @file{@var{path}/foo} repository in the home +directory of user @code{alice}. + +@item @code{listen} (default: @code{'()}) +Whether to listen on specific IP addresses or hostnames, defaults to +all. + +@item @code{port} (default: @code{#f}) +Whether to listen on an alternative port, which defaults to 9418. + +@item @code{whitelist} (default: @code{'()}) +If not empty, only allow access to this list of directories. + +@item @code{extra-options} (default: @code{'()}) +Extra options will be passed to @command{git daemon}, please run +@command{man git-daemon} for more information. + +@end table +@end deftp + +@defvr {Scheme Variable} home-kodi-service-type +This is the type of the @code{git daemon} home service, whose value is an +@code{home-kodi-configuration} object. +@end defvr + +@deftp {Data Type} home-kodi-configuration +Available @code{home-kodi-configuration} fields are: + +@table @asis +@item @code{git} (default: @code{git}) (type: file-like) +The git package to use. + +@item @code{extra-options} (default: @code{'()}) +Extra options will be passed to @command{kodi}, please run @command{man +kodi} for more information. + +@end table +@end deftp + +@defvr {Scheme Variable} home-ssh-agent-service-type +This is the type of the @code{git daemon} home service, whose value is an +@code{home-ssh-agent-configuration} object. +@end defvr + +@deftp {Data Type} home-ssh-agent-configuration +Available @code{home-ssh-agent-configuration} fields are: + +@table @asis +@item @code{git} (default: @code{git}) (type: file-like) +The git package to use. + +@item @code{socket-dir} (default: @code{@env{XDG_RUNTIME_DIR}/ssh-agent"}) (type: string) +The directory to write the ssh-agent's @file{socket} file. + +@item @code{extra-options} (default: @code{'()}) +Extra options will be passed to @command{ssh-agent}, please run +@command{man ssh-agent} for more information. + +@end table +@end deftp + +@defvr {Scheme Variable} home-znc-service-type +This is the type of the @code{git daemon} home service, whose value is an +@code{home-znc-configuration} object. +@end defvr + +@deftp {Data Type} home-znc-configuration +Available @code{home-znc-configuration} fields are: + +@table @asis +@item @code{git} (default: @code{git}) (type: file-like) +The git package to use. + +@item @code{extra-options} (default: @code{'()}) +Extra options will be passed to @command{znc}, please run @command{man +znc} for more information. + +@end table +@end deftp + @node Secure Shell @subsection Secure Shell