From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cOVyCsJqHGRuKQAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 16:05:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MF1FCsJqHGR81gAA9RJhRA (envelope-from ) for ; Thu, 23 Mar 2023 16:05:38 +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 0A7072CA4 for ; Thu, 23 Mar 2023 16:05:37 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679583938; 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; bh=b/w8qZ8PBeGED0BmUn1oIenv7q8egBDhYOOIu0WZybs=; b=eF9+NASYACMh1/R3wwnStbmysalkp5y6B6yEjxNWUcNvRpOj5jcN0vlGQArdBWyQA988pn 670WxFgVyVWD8wBItYDP8Zxvv355tAuyyB+NTyknQpTw+5IfuBn3KkyfMQAlCFZES6jWDJ dHORMCzQ36dbvU/B0sYFJT64+04HUVVpmKtlBNWe0vsSDmUm6pXz+eavIv8TI4zv0iO20m unEaLJY9RbvHEe78MbZ8Zt61U3Un8FkEGHOyeFvo29KcaY1hnvlA8INmJKI7OlTqR96jmo w3puzqM/YhsU0dYSOd3SkHowqafcNxqSyTI7pMwMDZv0MQK+Q8imwMAMKhAeJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679583938; a=rsa-sha256; cv=none; b=CBBn4OLVw5Mgkx6ubXz7sfi5LfFWQVRbdxlvTXggFnPuEb3/BcpaUgKGUg3zxcmukDFqFP rNe/IfGrdBSGOvefUT735JicdiUBjmDZQPLQa8xDVh+9qNhBPzPKL0ybPB/k3aC+89uM/6 NpBm+yot1IYYZH218f5db+zNThH4qb4Wd6ve6fUukh3xv049MesGs34+bhdD5TEPfbnytZ szN32JW2yovKbMytkHD6N3OxR1U2FHchAG15lcB/bh5/YaDm7finpwQbSV6roPJcigmD/A xbwPYnh0ufgQiDtFxtB4701lHQqtMcU4s8c8VxtKizD835UqQS4uN1kq5v1OdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfMV1-0003e0-S3; Thu, 23 Mar 2023 11:05:07 -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 1pfMUy-0003ch-AV for guix-patches@gnu.org; Thu, 23 Mar 2023 11:05:04 -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 1pfMUy-000210-0X for guix-patches@gnu.org; Thu, 23 Mar 2023 11:05:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfMUx-0001iM-Qv for guix-patches@gnu.org; Thu, 23 Mar 2023 11:05:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62298] [PATCH v2 6/8] services: mpd: Set PulseAudio related variables as default value for environment-variables field. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Mar 2023 15:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62298 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62298@debbugs.gnu.org Cc: ludo@gnu.org, Bruno Victal , liliana.prikler@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 62298-submit@debbugs.gnu.org id=B62298.16795838636494 (code B ref 62298); Thu, 23 Mar 2023 15:05:03 +0000 Received: (at 62298) by debbugs.gnu.org; 23 Mar 2023 15:04:23 +0000 Received: from localhost ([127.0.0.1]:39110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfMUI-0001ga-MD for submit@debbugs.gnu.org; Thu, 23 Mar 2023 11:04:22 -0400 Received: from smtpmciv2.myservices.hosting ([185.26.107.238]:49024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfMUC-0001fx-L4 for 62298@debbugs.gnu.org; Thu, 23 Mar 2023 11:04:17 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv2.myservices.hosting (Postfix) with ESMTP id E2FF720D6E; Thu, 23 Mar 2023 16:04:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 82C87800AE; Thu, 23 Mar 2023 16:04:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SCRwtDFABzpz; Thu, 23 Mar 2023 16:04:08 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id E321A800AB; Thu, 23 Mar 2023 16:04:07 +0100 (CET) From: Bruno Victal Date: Thu, 23 Mar 2023 15:02:16 +0000 Message-Id: <1fd17a12b40197d1a9d1de8f1d762c86649c7a0a.1679583701.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.1 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 0A7072CA4 X-Spam-Score: 0.15 X-Migadu-Spam-Score: 0.15 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: MgZ8Yc+ZrZgQ These variables are necessary for PulseAudio to work properly out-of-the-box for 'non-interactive' users. * doc/guix.texi (Audio Services): Update environment-variables field description for mpd-configuration data type. * gnu/services/audio.scm (mpd-configuration)[environment-variables]: Set PULSE_CLIENTCONFIG and PULSE_CONFIG environment variables to the system-wide PulseAudio configuration. --- doc/guix.texi | 2 +- gnu/services/audio.scm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 2b62605b51..af9f7d78c0 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -33501,7 +33501,7 @@ Audio Services This is a list of symbols naming Shepherd services that this service will depend on. -@item @code{environment-variables} (default: @code{()}) (type: list-of-strings) +@item @code{environment-variables} (default: @code{("PULSE_CLIENTCONFIG=/etc/pulse/client.conf" "PULSE_CONFIG=/etc/pulse/daemon.conf")}) (type: list-of-strings) A list of strings specifying environment variables. @item @code{log-file} (default: @code{"/var/log/mpd/log"}) (type: maybe-string) diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm index 56ea2f8638..198157a83b 100644 --- a/gnu/services/audio.scm +++ b/gnu/services/audio.scm @@ -361,7 +361,8 @@ (define-configuration mpd-configuration empty-serializer) (environment-variables - (list-of-strings '()) + (list-of-strings '("PULSE_CLIENTCONFIG=/etc/pulse/client.conf" + "PULSE_CONFIG=/etc/pulse/daemon.conf")) "A list of strings specifying environment variables." empty-serializer) -- 2.39.1