From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eOCTO6BLVWQ9awAASxT56A (envelope-from ) for ; Fri, 05 May 2023 20:32:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +DNSO6BLVWSeTAEA9RJhRA (envelope-from ) for ; Fri, 05 May 2023 20:32:00 +0200 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 BF87511EEC for ; Fri, 5 May 2023 20:32:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pv0C0-0005DA-2O; Fri, 05 May 2023 14:30:08 -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 1pv0Bu-0005Ar-Uk for bug-guix@gnu.org; Fri, 05 May 2023 14:30:02 -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 1pv0Bu-0005rG-KV for bug-guix@gnu.org; Fri, 05 May 2023 14:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pv0Bu-0003AJ-E9 for bug-guix@gnu.org; Fri, 05 May 2023 14:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63082: [PATCH v3 01/16] services: mpd: Add auto-update? field to mpd-configuration. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 May 2023 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63082@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 63082-submit@debbugs.gnu.org id=B63082.168331137411902 (code B ref 63082); Fri, 05 May 2023 18:30:02 +0000 Received: (at 63082) by debbugs.gnu.org; 5 May 2023 18:29:34 +0000 Received: from localhost ([127.0.0.1]:57468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv0BR-00035u-OX for submit@debbugs.gnu.org; Fri, 05 May 2023 14:29:34 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:51497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv0BP-00035K-Rq for 63082@debbugs.gnu.org; Fri, 05 May 2023 14:29:32 -0400 Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-74de7635180so193233485a.3 for <63082@debbugs.gnu.org>; Fri, 05 May 2023 11:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683311366; x=1685903366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=swMXXmQe22XzybeXDtARNni+zdrx+zn/mm96idRSNS0=; b=GMO5RlNnPZingRO+MlTDfEwdDm7rsZUx9pc8mP9aFG/HWZi5n0WpEFEqbObpMri0Fg SSJz+vSqfmazyGUm20/3B4wpcGjN1/6RybIl3kBuaPqyKjmJ3ZCQcuakAmzSuNXHo9jF cqgfhj1fWKOfeJJiKRI9MF/qO5tRdYFZoY90n7A8jA8yluxfg1nf35AHt4vpbc7IeKnb mtE0wf3Wao5vjcPIyzhg5US7xePDH1I4llg3Jtsdk55d7yg62WrbGOPhBbzIIkXb+Vzo fpgbUd4jIT3f8XRAHBt3Us6QIuKoFnMfWr9K40NNwUfoIuyCZ5ro5V4AGH72pT80YEAy HKtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683311366; x=1685903366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=swMXXmQe22XzybeXDtARNni+zdrx+zn/mm96idRSNS0=; b=DfZlD2p00Xv0ldLInf/eM0Z+eyygjM4cq6i1GN6mX5c0x1KJIy2/DfRm9siyWql8Ui vaZhDcvLCgAow4sC7QEOnUe/fWRGP87x6o+4Oe/PNpvlsbjauvyd5EaO7mP9aXabaM48 Uw39U4OgqEd3V5hg3cdUO2bbs4VG+7UL+SgQM24RCY0/bu/kUCmIbvn34RaXwRBF3Jen xAQOBjVWDk++GuUYRF12310I0r0mC4ntR35leO66EJyatfCETxYSjlLryeCIr0zpHVVi qmPC3vNY20L5KHfat1IRRm9e1iC+fPBTPdO1iYxPuokCgfGDcQ6OQowO5+0/8EM3Vgi4 6/1Q== X-Gm-Message-State: AC+VfDyrLYhZwj9057+h7FThQD/MmDaDoLB73oofbaamnSz1Az34uEEf rQuAd/FqrY+JXMXn7UCmzsiKKmA4XRg= X-Google-Smtp-Source: ACHHUZ4xf0qQZ+tt/Fvc3MJdxHIGha97NeagS4pTqa4zH9RmGB8hSt+YCJhJHlifb8CiAtDsoq7jLA== X-Received: by 2002:a05:622a:190c:b0:3e6:3661:7b29 with SMTP id w12-20020a05622a190c00b003e636617b29mr3960269qtc.21.1683311365831; Fri, 05 May 2023 11:29:25 -0700 (PDT) Received: from localhost.localdomain (dsl-205-236-230-162.b2b2c.ca. [205.236.230.162]) by smtp.gmail.com with ESMTPSA id c1-20020ac81e81000000b003e97fe68511sm834399qtm.3.2023.05.05.11.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 11:29:25 -0700 (PDT) From: Maxim Cournoyer Date: Fri, 5 May 2023 14:28:56 -0400 Message-Id: <286f7139a07a0e3894dac3ba6dbff95d0603c2dc.1683299528.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683311520; a=rsa-sha256; cv=none; b=XSCf1OXjKpHdHI67fo+KTpe/b13vyO8hBfpn4e5q2XVtjy1CVm4AJVybtrryB+CidC3+lw CxYzbsEcGxH/C9hxbS2m/taHjndd2Qd5wX2arEQdYebjrcbFkYBn9UQRKk1SJfjdGqXemZ KfntUPoBghdRmKy+Lf6RJWMe+3Be/VI1zgaYowm0RHC4bMk7WkpqOfXu/wWDd/zpnYQ3kj /bVgTvqqGxZ6oZhOzgo3p/So2I44SRBR3gA/U2VcxYgbH+XwgmjdpJimCjt1USDiARVizW eil/b7BCFcKS29TcIR9NDFK+jELd/9z0LRTSk493FwCuz4WWQd9rrLthmOnw/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=GMO5RlNn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683311520; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=swMXXmQe22XzybeXDtARNni+zdrx+zn/mm96idRSNS0=; b=o0jEfmlTd1B+KDDn14qyS6jmqFAhWLd/MRekiPuOo1MbLMbIQigseObtueRjOAmjChXJl+ OxYfGnuSekc37zGbS5cEjBR05XnSyj/IRh7Z1ITCBbblFvpcXAQGxU8VdhaKJGVtnK3ekf k4bsv6NXl7VdapELZDZipMdb3lceJw2clAzVJGsz+xQQ5UkWheacTezxmmwbadn9wqsTjq Ifz7ECY2K2p3xoTZaf4C+ApbgRRtsJeP5b9WK8q+N+9SpooNrO4PxMsMbqoIkyIavFSF7t w4ZkC8MAd21gc92DPvu9upHPgvgsRx3StfL08taqVXeMAwOKWS/XrEE01UNfdQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=GMO5RlNn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.30 X-Spam-Score: 6.30 X-Migadu-Queue-Id: BF87511EEC X-TUID: z3xbl0mYSUo4 * gnu/services/audio.scm (mpd-configuration) [auto-update?]: New field. * doc/guix.texi (Audio Services): Update doc. --- doc/guix.texi | 39 ++++++++++++++++++++++++++------------- gnu/services/audio.scm | 5 +++++ 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 55221a10c3..66eb44812d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -33579,24 +33579,22 @@ Audio Services The service type for @command{mpd} @end defvar +@c %start of fragment @deftp {Data Type} mpd-configuration -Data type representing the configuration of @command{mpd}. +Available @code{mpd-configuration} fields are: @table @asis @item @code{package} (default: @code{mpd}) (type: file-like) The MPD package. -@item @code{user} (default: @code{%mpd-user}) (type: user-account) +@item @code{user} (type: user-account) The user to run mpd as. -The default @code{%mpd-user} is a system user with the name ``mpd'', -who is a part of the group @var{group} (see below). -@item @code{group} (default: @code{%mpd-group}) (type: user-group) +@item @code{group} (type: user-group) The group to run mpd as. -The default @code{%mpd-group} is a system group with name ``mpd''. @item @code{shepherd-requirement} (default: @code{()}) (type: list-of-symbol) -A list of symbols naming Shepherd services that this service +This is a list of symbols naming Shepherd services that this service will depend on. @item @code{environment-variables} (default: @code{("PULSE_CLIENTCONFIG=/etc/pulse/client.conf" "PULSE_CONFIG=/etc/pulse/daemon.conf")}) (type: list-of-strings) @@ -33615,9 +33613,15 @@ Audio Services @item @code{music-directory} (type: maybe-string) The directory to scan for music files. +@item @code{music-dir} (type: maybe-string) +The directory to scan for music files. + @item @code{playlist-directory} (type: maybe-string) The directory to store playlists. +@item @code{playlist-dir} (type: maybe-string) +The directory to store playlists. + @item @code{db-file} (type: maybe-string) The location of the music database. @@ -33627,15 +33631,19 @@ Audio Services @item @code{sticker-file} (type: maybe-string) The location of the sticker database. -@item @code{default-port} (default: @code{6600}) (type: maybe-integer) +@item @code{default-port} (default: @code{6600}) (type: maybe-port) The default port to run mpd on. @item @code{endpoints} (type: maybe-list-of-strings) -The addresses that mpd will bind to. A port different from @var{default-port} -may be specified, e.g. @code{localhost:6602} and IPv6 addresses must be -enclosed in square brackets when a different port is used. -To use a Unix domain socket, an absolute path or a path starting with @code{~} -can be specified here. +The addresses that mpd will bind to. A port different from +@var{default-port} may be specified, e.g. @code{localhost:6602} and +IPv6 addresses must be enclosed in square brackets when a different port +is used. To use a Unix domain socket, an absolute path or a path +starting with @code{~} can be specified here. + +@item @code{address} (type: maybe-string) +The address that mpd will bind to. To use a Unix domain socket, an +absolute path can be specified here. @item @code{database} (type: maybe-mpd-plugin) MPD database plugin configuration. @@ -33652,6 +33660,10 @@ Audio Services @item @code{archive-plugins} (default: @code{()}) (type: list-of-mpd-plugin) List of MPD archive plugin configurations. +@item @code{auto-update?} (type: maybe-boolean) +Whether to automatically update the music database when files are +changed in the @var{music-directory}. + @item @code{input-cache-size} (type: maybe-string) MPD input cache size. @@ -33677,6 +33689,7 @@ Audio Services @end table @end deftp +@c %end of fragment @deftp {Data Type} mpd-plugin Data type representing a @command{mpd} plugin. diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm index 690409b7a1..8c061da47f 100644 --- a/gnu/services/audio.scm +++ b/gnu/services/audio.scm @@ -514,6 +514,11 @@ (define-configuration mpd-configuration (serializer (lambda (_ x) (mpd-serialize-list-of-mpd-plugin "archive_plugin" x)))) + (auto-update? + maybe-boolean + "Whether to automatically update the music database when files are changed +in the @var{music-directory}.") + (input-cache-size maybe-string "MPD input cache size." -- 2.39.2