From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MF8NNg6zF2IreAEAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 17:32:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QJ2zMg6zF2JAJQEAauVa8A (envelope-from ) for ; Thu, 24 Feb 2022 17:32:14 +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 870082A749 for ; Thu, 24 Feb 2022 17:32:14 +0100 (CET) Received: from localhost ([::1]:33614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNH2L-0001jq-OE for larch@yhetil.org; Thu, 24 Feb 2022 11:32:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNH2A-0001jE-CG for guix-patches@gnu.org; Thu, 24 Feb 2022 11:32:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNH2A-0007kw-3G for guix-patches@gnu.org; Thu, 24 Feb 2022 11:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNH29-0002f1-P9 for guix-patches@gnu.org; Thu, 24 Feb 2022 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53676] [PATCH 0/5] *** PulseAudio service improvements *** Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Feb 2022 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53676 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 53676@debbugs.gnu.org Received: via spool by 53676-submit@debbugs.gnu.org id=B53676.164572029310190 (code B ref 53676); Thu, 24 Feb 2022 16:32:01 +0000 Received: (at 53676) by debbugs.gnu.org; 24 Feb 2022 16:31:33 +0000 Received: from localhost ([127.0.0.1]:50239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNH1g-0002eI-LW for submit@debbugs.gnu.org; Thu, 24 Feb 2022 11:31:32 -0500 Received: from mail-qv1-f46.google.com ([209.85.219.46]:42648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNH1e-0002e5-Ok for 53676@debbugs.gnu.org; Thu, 24 Feb 2022 11:31:31 -0500 Received: by mail-qv1-f46.google.com with SMTP id e22so4473242qvf.9 for <53676@debbugs.gnu.org>; Thu, 24 Feb 2022 08:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=fgtXJzuekx1+ZgDnLU+5K6/2LxksjgdneLkUyzRIe8E=; b=cIRzqH5JkKDY8g2HzPCQeLw/tzXHQpfjskxVOPE23tNTK2Z9uE78yxFmBn5iTUoUH2 M2vB3FvLc3QlF0Jt5AxmVyp+LKSKadVIDIrnmgOjXsxk4fEGXBl/Pgl/iHPpgkiER19A NnFICermt8VZe01sHEzsJkAs8BrGTdXKk8T7BAHh38GRh4PDSxF3iGrU2Tg3OPwiGdU8 7x57q3uCjpu4ty1PXB91jAkmmnBX008Jo6MdYeivQ5JObXnwJhkp4U9JQBG2+4aI9nkC q3s8dwSiV25BT25YJNkzj6eGmz3VZAc9IGgaECHS3Mc0+OEpIsnfw36EHoCn9+uyAi4R o6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=fgtXJzuekx1+ZgDnLU+5K6/2LxksjgdneLkUyzRIe8E=; b=mSgsswmMu94pot0EeBVHFP1MXhFRJL2k6yjppUs26b6ybqEJQtpDkUbfLJl7ySGhi/ amIOtxnSbhY/dVNYtqtsU/Cu+vgXpJ5SByrp1/9fM6t2Q8EgJv9ijB8bSEZiF+meL/Mb JmsRei9x7EZh+ydBjeVg/7nSSZ/VtDvv1RSkRb6boOafI/FR4LGDyJWCftqW9Nu9igEJ eeYIK+7LSvBpnlVcGwNDAszbuR+DYMGKw4XpFmXrGgLBp0TvrBQgraCowCxCmrTEFm/0 C0LEan8JlpgAK34B6vJeQPqC2O2TITSQdiOLiPnuWJAxRAa6+pKjzK0LyjeSeCpfe6Xm tRtQ== X-Gm-Message-State: AOAM5314FBUPDiN8XzgXwrta0n+dptszjlPKfjC2ZWJEutkE8otDQwjz ElKEDivgKhF45gQqjMDR7pAr+hWHKkjyDA== X-Google-Smtp-Source: ABdhPJxyE4M8ovNhw1HcdiUTkP1SAwoZuudfMfYBN6ivH9XC78jbzhlm+dPD96MHVu4zJfCNNsGWEw== X-Received: by 2002:a05:622a:1b8d:b0:2d9:7048:5d68 with SMTP id bp13-20020a05622a1b8d00b002d970485d68mr3187170qtb.5.1645720284976; Thu, 24 Feb 2022 08:31:24 -0800 (PST) Received: from hurd (dsl-156-1.b2b2c.ca. [66.158.156.1]) by smtp.gmail.com with ESMTPSA id u12sm1971329qta.76.2022.02.24.08.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:31:24 -0800 (PST) From: Maxim Cournoyer References: <20220201041933.16603-1-maxim.cournoyer@gmail.com> <20220201041933.16603-3-maxim.cournoyer@gmail.com> <693cc82d449395853247c7fbf1b44d0a3c979c87.camel@gmail.com> <875ypy1gqd.fsf@gmail.com> <87k0edzy8j.fsf@gmail.com> <2ed5ef40ecc06c783af81de129a62d3c42d87fec.camel@gmail.com> <87h79c1p86.fsf_-_@gmail.com> Date: Thu, 24 Feb 2022 11:31:23 -0500 In-Reply-To: (Liliana Marie Prikler's message of "Sun, 06 Feb 2022 10:07:38 +0100") Message-ID: <8735k8jkf8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645720334; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=fgtXJzuekx1+ZgDnLU+5K6/2LxksjgdneLkUyzRIe8E=; b=YDSPsPOFR7B6mTjKyBvzgWBL8TmOMVxBV9dwnSFSU0zb//JDgzdIr2GYXY67iDhx5a0+AJ aYS3jBQLTFjQ2LWdPDQLsgs1kAI2JnTSLS7j472MGA/KkXTSVqEZQ7VIlAYMNqu0CoWnMC UXxpOkKu3Ehh4ThZCWWNZua/MlXRACyWiilBgrae4TLzSm2MaUQxQnhMOPgQVN/M/Nj4jh /NhkOYshqLwWhcnDgjrO12oSTnFsdfuK16ZDUB0j0eMRfo6HFH5gx5QCMJj6M6ZWR8tcQX auQAgArOxcDhvCaApkomuqyACQQdt+/01pJ4LHgwnqJgJFUa9zuP1s2FBduvoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645720334; a=rsa-sha256; cv=none; b=bVYx0j5Kc+gqrH+vMLr+diqo1o6dC59GVzxvOzstsoL7IJ7T2FWHXfI0loRb9lpqESJrPb tXrJPwvSA4ZhFtOHNo87/uEGLgptjs5zHRHgYvavCEBGt2dytiHE2IgfsPeFsPdy3tyV/t jk6dd1kGoDQbcGC/Nu0BXaKccqp33CVEwjmroxh3jVCABpJZK8wUYxb0DZhBl2D+vW84I0 xsqqgeXR3hBViL0Tc0YXN6MoTyExa4RZrewjj6IPz8pIajgzQv9i4Wh3HqsZoEZD+YKQhW tMWS3fsSwnv19uBzp71Gnx2wx4hBhtCtOjIEDNir0Q1auQRPvA28rpchkftesA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cIRzqH5J; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Spam-Score: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cIRzqH5J; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Queue-Id: 870082A749 X-Spam-Score: -2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: MzTSX1/ewojH Hi Liliana, Liliana Marie Prikler writes: [...] > The way I wrote above is the way I intended pulseaudio- service-type > to be used and it's in terms of writing the pulseaudio configuration > not that much harder than what you are proposing. It'd be trivial to > add a clause to ".include /etc/pulse/default.pa.d" through the service > configuration layer. Also with pulseaudio < 15.0, you could =E2=80=93 af= ter > groking gexps a little =E2=80=93 produce > > .include /gnu/store/7xwgz4bavb1i8sfx1lm55hlrr3ngjkdx-pulseaudio- > 15.0/etc/default.pa > .include /gnu/store/12345678901234567890123456789012-audigy-card.pa > .include /gnu/store/12345678901234567890123456789013-other-stuff.pa > [...] > > > inside that mixed-text-file. With pulseaudio 15.0, you can also > > (define my-pulseaudio-extra-config > (directory-union ...)) > > and use it like > > (script-file > (mixed-text-file "default.pa" > ".include" > (file-append pulseaudio "/etc/default.pa") > ".include" my-pulseaudio-extra-config)) That is nice, but is still a bit more demanding from users: 1. They need to know how to compose multiple G-Exps expressions such as mixed-text-file and file-append. 2. They need to know to use ".include" directives from PulseAudio. My proposed change reduces the knowledge needed to just a single usage of a G-Exp file-like object, such as plain-file or local-file; I think that's a bit easier to grok for starters. The resulting configuration is also easy to inspect; it's all under /etc/pulse as the user would expect. Thanks, Maxim