From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 02 16:16:40 2024 Received: (at submit) by debbugs.gnu.org; 2 Dec 2024 21:16:40 +0000 Received: from localhost ([127.0.0.1]:56759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIDma-0008Sl-GR for submit@debbugs.gnu.org; Mon, 02 Dec 2024 16:16:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:43734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIDmY-0008Sd-Bh for submit@debbugs.gnu.org; Mon, 02 Dec 2024 16:16:38 -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 1tIDmX-0005tt-TQ for guix-patches@gnu.org; Mon, 02 Dec 2024 16:16:38 -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 1tIDmW-0008Di-AM; Mon, 02 Dec 2024 16:16:36 -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=NCCb1tb88+UEKQ7BSPRA1kUDcXd+9E+pdyGYAHTZOXo=; b=aPJeJ6zZW/P9Nu JUewkszALtgGrs5bT84/ZLCAnB1HV54NW8L/zTbmxjc7IX1uVW4nVF1S0MTsmSR1VAw3Io+roL7ki XGQ25gkV1sO5tfGUzYu9Ovsi//+qKk+Y1KHIB+Zw347qDXJDzvj7i10hbWPYK5r83bPcC9B3LvhwX xmh0RnekYf8PhFcV0rXF+3Rwgnftold7w0wTnlDSKCmw6GlJMlRluH8WFfIkyzlSl6KcVXLN/gAdP kSAcZikIbfTN+coSEnsKk0WbrvWV2j+POOL9Jdmex1rarIk7OxnrBe/j9tL/4R/Rd4Sv225ITEVYE owhKCSvqMrlJMkQtTHxw==; From: Janneke Nieuwenhuizen To: guix-patches@gnu.org Subject: [PATCH] gnu: home: home-pipewire: Add extra-content to configuration. Date: Mon, 2 Dec 2024 22:16:28 +0100 Message-ID: <20241202211630.14201-1-janneke@gnu.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Debbugs-Cc: ( , Andrew Tropin , Ludovic Courtès , Maxim Cournoyer , Tanguy Le Carrour Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This allows for setting the default sound card/device, e.g.: pcm.!default {type hw card 0 device 2} ctl.!default {type hw card 0 device 2} * gnu/home/services/sound.scm (home-pipewire-configuration)[extra-content]: New field. * gnu/home/services/sound.scm (home-pipewire-asoundrc): Append it to "asoundrc". * doc/guix.texi (Sound Home Services): Update accordingly. Change-Id: I6ecebaaab41cd7313b16a5f365c21789db65664e --- doc/guix.texi | 3 +++ gnu/home/services/sound.scm | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 8a6640124c..f5bd1bc667 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -47289,6 +47289,9 @@ The WirePlumber package to use. @item @code{enable-pulseaudio?} (default: @code{#t}) (type: boolean) When true, enable PipeWire's PulseAudio emulation support, allowing PulseAudio clients to use PipeWire transparently. + +@item @code{extra-content} (default: @code{""}) (type: string) +Extra content to add to the end of @file{~/.config/alsa/asoundrc}. @end table @end deftp diff --git a/gnu/home/services/sound.scm b/gnu/home/services/sound.scm index 313a57305b..5366c0634f 100644 --- a/gnu/home/services/sound.scm +++ b/gnu/home/services/sound.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2023 Ludovic Courtès ;;; Copyright © 2023 Brian Cully +;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,7 +50,10 @@ (define-configuration/no-serialization home-pipewire-configuration (enable-pulseaudio? (boolean #t) "When true, enable PipeWire's PulseAudio emulation support, allowing -PulseAudio clients to use PipeWire transparently.")) +PulseAudio clients to use PipeWire transparently.") + (extra-content + (string "") + "Extra content to add to the end of @file{~/.config/alsa/asoundrc}.")) (define (home-pipewire-shepherd-service config) (shepherd-service @@ -93,7 +97,7 @@ (define (home-pipewire-shepherd-services config) (define (home-pipewire-asoundrc config) (match-record config - (pipewire) + (pipewire extra-content) (mixed-text-file "asoundrc" "<" pipewire "/share/alsa/alsa.conf.d/50-pipewire.conf>\n" @@ -103,7 +107,8 @@ (define (home-pipewire-asoundrc config) "}\n" "ctl_type.pipewire {\n" " lib \"" pipewire "/lib/alsa-lib/libasound_module_ctl_pipewire.so\"\n" - "}\n"))) + "}\n" + extra-content))) (define home-pipewire-disable-pulseaudio-auto-start (plain-file "client.conf" "autospawn = no")) -- 2.46.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 22 03:47:41 2025 Received: (at 74657-done) by debbugs.gnu.org; 22 Jan 2025 08:47:41 +0000 Received: from localhost ([127.0.0.1]:59690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1taWOj-0003B6-62 for submit@debbugs.gnu.org; Wed, 22 Jan 2025 03:47:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52078) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1taWOf-0003Af-MS for 74657-done@debbugs.gnu.org; Wed, 22 Jan 2025 03:47:38 -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 1taWOW-0004Go-O2; Wed, 22 Jan 2025 03:47:28 -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:References:In-Reply-To:Subject:To: From; bh=nflEPQ4P60Mwz0zIKfBB4hnkAFBxZX4CkPtT0qZjy44=; b=ZENizsi+VDq7ysr0Lwal sIk7zhr23jrxTHF1jXDC9ndquh2X1JrmdNiDQDh22qviJg2TsR3HsH/t8uuEm2UeZlAKWWfrPDcHh OODUCxVySELFxuisb2qKjW7k9vsoWx0pW2vA7Lbrj/biHGR/g3KUtD6EYPiNWpYdyiNjJewnydavU TcE71u+C+m0VnxxNOIhGkhzi5uIchMtXPliimak6e3Q1DkvcevpuUWnc5C6TZkJa027iYbTaVAvPh ZrYCYGel8GfwHD50u9y+WyZOuIL+hKBSx9mFbI/EcZnNf1HR10sxPEma6zYClYd5dBJ3Xd18lbJB2 qh2g8EOVnkFjeA==; From: Janneke Nieuwenhuizen To: 74657-done@debbugs.gnu.org Subject: Re: [bug#74657] [PATCH] gnu: home: home-pipewire: Add extra-content to configuration. In-Reply-To: <20241202211630.14201-1-janneke@gnu.org> (Janneke Nieuwenhuizen's message of "Mon, 2 Dec 2024 22:16:28 +0100") References: <20241202211630.14201-1-janneke@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Wed, 22 Jan 2025 09:47:21 +0100 Message-ID: <877c6ngrqe.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74657-done Cc: "\(" , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tanguy Le Carrour , Maxim Cournoyer , Andrew Tropin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Janneke Nieuwenhuizen writes: > This allows for setting the default sound card/device, e.g.: > > pcm.!default {type hw card 0 device 2} > ctl.!default {type hw card 0 device 2} > > * gnu/home/services/sound.scm (home-pipewire-configuration)[extra-content= ]: > New field. > * gnu/home/services/sound.scm (home-pipewire-asoundrc): Append it to > "asoundrc". > * doc/guix.texi (Sound Home Services): Update accordingly. > > Change-Id: I6ecebaaab41cd7313b16a5f365c21789db65664e Pushed to master as 7080aaf08102ec4c9c976582d6adfa0c14e6c640. Greetings, Janneke --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com From unknown Fri Jun 20 07:29:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 19 Feb 2025 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator