From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eMrxJRqqgmWXYgEAkFu2QA (envelope-from ) for ; Wed, 20 Dec 2023 09:47:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id ID4fHhqqgmUaxwAAe85BDQ (envelope-from ) for ; Wed, 20 Dec 2023 09:47:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=mAKbNbyf; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703062042; 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:resent-to: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=RlhgpRloZUAeMkm//77U7uKy2Xi82j0m+QJV2Hc59ns=; b=Hv0OthfJLq9DG27RFqNaPsJwCFyDgp7IGD1pSugct/LEi4+jYtaYp4wz4h8K4UO6xNpuVY tiT0SaUtOU861sPbVnjdCvzEFHzjI6EQaJSRX1xQ4PAjgsGPzBMWSgrRN1BwWJQyvnxf9N Pkf0k0JXKaqn7CJKIUYHG0EGe/EvIs29uc4XyHd6rW36zit2tn1KHahrmaZFHQN66wMdcm kJiCdvtIYpi8FcpmpOHmVnbtg0fYIBpOvdqV74G6wAwjwVcDj6DX/h3GNJ5RBnbgB9x5R5 MFzFEWmI3BaYwPM3CQfjnhGkb6MxPwgMLI4xOp4IapDu1Bv+K+0eKNKu6pAymw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=mAKbNbyf; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703062042; a=rsa-sha256; cv=none; b=kgip7n+EXgIl79rSkE/euf1vxT2x9v2gy9jchRXpedpxiJcz2XblNINzdbq/IGdn12uBqJ j8fXMMNmR7czYDGOMTNIzJBmtWPR4nSn1tYVH1CfXn/J3llaN5Tpnxd0yAklj9VKeESUNf t/xbbkPWSMY0O0+qUKMY1KOGpyvzGeVjbHqb8kdgMSNOhR4xh4YusWBKA37KvjZ3Sa9n+J KUi4FD6pC4MhONRjJtR5cEQdAX9qhW+4S4+tbulDoBF2AcWVrx8/tFRxpz8QB3HG+OXXzM ED6mPQ5vUhVlzTGMhM4VBfVfE54OxiPllV5Qu3V+MV6fX+j70bdfswZGfbLWkA== 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 F407C2723C for ; Wed, 20 Dec 2023 09:47:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rFsEQ-0003Pg-20; Wed, 20 Dec 2023 03:47:10 -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 1rFsEH-0003PG-Ih for guix-patches@gnu.org; Wed, 20 Dec 2023 03:47:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rFsEG-0008P4-9s for guix-patches@gnu.org; Wed, 20 Dec 2023 03:47:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rFsEI-0002au-RT for guix-patches@gnu.org; Wed, 20 Dec 2023 03:47:02 -0500 Subject: bug#63863: [PATCH v6] gnu: home: Add support for home-pipewire-service Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 20 Dec 2023 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63863 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Brian Cully Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 63863-done@debbugs.gnu.org, Tanguy LE CARROUR , Andrew Tropin Mail-Followup-To: 63863@debbugs.gnu.org, go.wigust@gmail.com, bjc@spork.org Received: via spool by 63863-done@debbugs.gnu.org id=D63863.17030619999937 (code D ref 63863); Wed, 20 Dec 2023 08:47:02 +0000 Received: (at 63863-done) by debbugs.gnu.org; 20 Dec 2023 08:46:39 +0000 Received: from localhost ([127.0.0.1]:38617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFsDu-0002aD-ND for submit@debbugs.gnu.org; Wed, 20 Dec 2023 03:46:39 -0500 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:40131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFsDs-0002Zz-HI for 63863-done@debbugs.gnu.org; Wed, 20 Dec 2023 03:46:37 -0500 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50e40b43798so737739e87.0 for <63863-done@debbugs.gnu.org>; Wed, 20 Dec 2023 00:46:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703061987; x=1703666787; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=RlhgpRloZUAeMkm//77U7uKy2Xi82j0m+QJV2Hc59ns=; b=mAKbNbyfaXr8mfKpb8I/mCmAekDZMVCwDC8bqQzU/TdiGJpYOTHrLHXH9lq439EaIO C+mzqrdXOLsDwBjTW979PHa9p6zUpuglQo4jO1EUPzvG0bWNeQnRcbJwp0C5/Q4OWbL7 eVtOfjvhvybRWPpGARW1/nWdRo2nqBxjeiVk/HwaDSU14xG3pdIM3Bc0RFarNKwCrlez J5YCBIMEgLusduoNZP6bC/RL1ygG7UBRs7Jt3kQsM3e3Pbj9RDVLpiPLmMGdK6yXGIGi 5DXr2wQ2b62NebUCI7K1AIr+cvvadT0OeiPuuGM8qeD8QUkkUNSLlh4xLL1o1M6jfdo6 MhUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703061987; x=1703666787; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RlhgpRloZUAeMkm//77U7uKy2Xi82j0m+QJV2Hc59ns=; b=rFnABRENpRYmWKELQeyTDbjj441/SFECGfgLE1rWRygxB1Ve5PzKnimIKoAYB7KACb jojoTRNWQq1ffQ06nu6tDTdCdY5EYT6AvvCkd6L7TBL4ghEQyax2pWGp5oLHCXrkmVHc WS8VgE8olRFDGGTJCtjgYgF2vZRp9AQgNNqNFkgsYBtzzy+L/ASy+72sf8TPi62UYVCG am1n+5slthWUkfoCsI0eeze1oko2IT/I0/E7g39k/ODYZRll0oRWSTOVp2Y/ph2JH1R5 UXmP/+XqPc0pzVdl2hhhT/kUwc7zuDLFattNEfaY2O/9TmiIAKw+Zbw+SDR1dbp46P5g 5rww== X-Gm-Message-State: AOJu0YxyJPAu1wUwYeX0f9G9enzG3lal0uEq4x8PETvotcOg3M0rkxPg Rmp2EvnSRFNJVEi2upr5n1A= X-Google-Smtp-Source: AGHT+IFP38agJcecYR5bGHwTjjZ6tr6cJiWccPtdGZnXh1y2d2raLOCw2bKpgp48AmY+bl9g7cZcpg== X-Received: by 2002:ac2:5b05:0:b0:50e:3107:29e8 with SMTP id v5-20020ac25b05000000b0050e310729e8mr5524610lfn.3.1703061986771; Wed, 20 Dec 2023 00:46:26 -0800 (PST) Received: from localhost ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id e4-20020a056512090400b0050e55fab0eesm22909lft.292.2023.12.20.00.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 00:46:26 -0800 (PST) From: Oleg Pykhalov In-Reply-To: (Brian Cully's message of "Sat, 16 Dec 2023 10:23:37 -0500") References: <13252a733171e18f4d39d0185ddf3e8e3c06bc15.1685747062.git.bjc@spork.org> Date: Wed, 20 Dec 2023 11:46:25 +0300 Message-ID: <871qbh8dni.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.22 X-Spam-Score: -7.22 X-Migadu-Queue-Id: F407C2723C X-Migadu-Scanner: mx10.migadu.com X-TUID: XhEWm53sdx6z --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Brian, Brian Cully writes: > This adds a set of home shepherd services which will start the required > services for a functional pipewire setup. > > * gnu/home/services/sound.scm (home-pipewire-shepherd-service), > (home-pipewire-pulse-shepherd-service), (home-wireplumber-shepherd-servic= e), The =E2=80=98home-pipewire-pulse-shepherd-service=E2=80=99 procedure is mis= sing. Do you have a code for this procedure or should it be removed from the commit message? The PipeWire service seems to work without it. > (home-pipewire-shepherd-services) > (home-pipewire-asoundrc), (home-pipewire-xdg-configuration): new procedur= es. > (home-pipewire-service-type): new service type. > (home-pipewire-configuration): new struct. > (home-pipewire-disable-pulseaudio-auto-start): new variable. > * doc/guix.texi (Sound Home Services): document it. > > Change-Id: I99e0ae860de91d459c3c554ec5503bf35f785a2a > --- > doc/guix.texi | 72 +++++++++++++++++++++++++ > gnu/home/services/sound.scm | 102 +++++++++++++++++++++++++++++++++++- > 2 files changed, 173 insertions(+), 1 deletion(-) > ... > base-commit: d5298c5e334e56a9aabddcb62d312e63135864f6 This is the third implementation of a PipeWire related home services which I've found on the Internet. In the end all of them are the same except variable naming. Also I've looked how NixOS and Gentoo GNU/Linux distributions use PipeWire. Running it is a home service is the recommended way by the upstream (user's systemd units are recommended by the upstream to be correct) [1]. [1]: https://github.com/PipeWire/pipewire/blob/bd87902da6a2badae096e4679eed= fe9da2e75d79/NEWS#L5573 The patch is tested with the following Guix home configuration: =2D-8<---------------cut here---------------start------------->8--- (service home-dbus-service-type) (service home-pipewire-service-type) =2D-8<---------------cut here---------------end--------------->8--- The sound from speakers and microphone work. Also I've packaged obs-pipewire-audio-capture package which works with current PipeWire implementation. I think we could merge the patch after getting =E2=80=98home-pipewire-pulse-shepherd-service=E2=80=99 or removing it from = the commit message, e.g.: =2D-8<---------------cut here---------------start------------->8--- gnu: home: Add home-pipewire service. This adds a set of home Shepherd services which will start the required services for a functional PipeWire setup * gnu/home/services/sound.scm (home-pipewire-shepherd-service, home-wireplumber-shepherd-service, home-pipewire-shepherd-services, home-pipewire-asoundrc, home-pipewire-xdg-configuration): New procedures. (home-pipewire-service-type): New service type. (home-pipewire-configuration): New struct. (home-pipewire-disable-pulseaudio-auto-start): New variable. * doc/guix.texi (Sound Home Services): Document it. =2D-8<---------------cut here---------------end--------------->8--- Brian, could you add the code for =E2=80=98home-pipewire-pulse-shepherd-ser= vice=E2=80=99 if it is required, please? Thanks, Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmWCqeEUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pxFrw/+JoLSu0ORCQBxWo89bLESCgiDmcvR giTnNgxnjBfuur7nfTinReKCSkkrfUhoFLabGMz9Rr/0guyzTHsB+nIoGab2S8ZU KGD3uru+AgcNmJwABKJZ2S5ULvtjZ79eAKmujpPUMc8HQK16vUPxAnGAahPC0/T1 v3oH+FyuDhGa3Re+IcWDAg6hw+qBCfEBJL6LZaeWmwPEaXbHnpHl7f+sxdUe/yMa WIoKPN3VVTerNbdpIECKuTHYFDAkGjz1tYa2dEEYgJTi+KyM0HIG2ZEz2Lkw9Ah7 Zda7i8WeaIriYYfWO89ys9yxeoBqk9ZWrAJiWoW42/Rt4nQpghcn4dqd7OaUSmjJ ec4bnekFIlZtq6pnyZD03we7B50PB4R4jWVBIgrHEhskUs5PumwbUI9FYZjArDQJ 3rzLAVxPxqxJn4Pv744eO+WMmVW39/ixfvYv2+HAD0sf4LelS6QlJOrxzpc3Tuhc 1GTHbEn4BgsE3XfANyICA1hcK8wT917Osaa2d2SSM5Xk19aGJWT+cWzEDMskaaeu tZqOl7Q/Z6vLOgADNbrLflJxTtWVS7ESJvxXVbqptdSSbHTs6uc/0e5drgXEMpI7 IPMCBj5Gv6YQITkQcOCqnvXNnYTbVHXVIa8p/sHOrS/XjZg/liWsjvkJMgoSZpIu 4sc4ugBRnwd9m1Q= =YXi8 -----END PGP SIGNATURE----- --=-=-=--