unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Apoorv via Guix-patches via <guix-patches@gnu.org>
To: 72673@debbugs.gnu.org
Subject: [bug#72673] [PATCH] Add home-pipewire-profile-service to home-pipewire-service-type
Date: Fri, 16 Aug 2024 19:14:28 +0200 (CEST)	[thread overview]
Message-ID: <O4RAjXI--3-9@tuta.io> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 401 bytes --]

`home-pipewire-service-type` should provide the `pw-` and `wpctl` commands, so I modified the `home-pipewire-service-type` to add the `home-profile-service-type` extension for that.

I have to manually install both packages (pipewire and wireplumber) to get those commands, when this service-type could be doing all that for us.

-- 
 Sent with Tuta; enjoy secure & ad-free emails: 
 https://tuta.com

[-- Attachment #1.2: Type: text/html, Size: 661 bytes --]

[-- Attachment #2: 0014-Add-home-pipewire-profile-service-to-home-pipewire-s.patch --]
[-- Type: text/x-patch, Size: 1463 bytes --]

From 6f71b946875479a071baa8e20bc8f05e72610122 Mon Sep 17 00:00:00 2001
From: apoorv569 <apoorvs569@gmail.com>
Date: Fri, 16 Aug 2024 22:40:22 +0530
Subject: [PATCH 14/14] Add home-pipewire-profile-service to
 home-pipewire-service-type

---
 gnu/home/services/sound.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/home/services/sound.scm b/gnu/home/services/sound.scm
index 313a57305b..8afdd84740 100644
--- a/gnu/home/services/sound.scm
+++ b/gnu/home/services/sound.scm
@@ -51,6 +51,11 @@ (define-configuration/no-serialization home-pipewire-configuration
    "When true, enable PipeWire's PulseAudio emulation support, allowing
 PulseAudio clients to use PipeWire transparently."))
 
+(define (home-pipewire-profile-service config)
+  (list
+   (home-pipewire-configuration-pipewire config)
+   (home-pipewire-configuration-wireplumber config)))
+
 (define (home-pipewire-shepherd-service config)
   (shepherd-service
    (documentation "PipeWire media processing.")
@@ -121,6 +126,8 @@ (define home-pipewire-service-type
    (extensions
     (list (service-extension home-shepherd-service-type
                              home-pipewire-shepherd-services)
+          (service-extension home-profile-service-type
+                             home-pipewire-profile-service)
           (service-extension home-xdg-configuration-files-service-type
                              home-pipewire-xdg-configuration)))
    (description
-- 
2.45.2


                 reply	other threads:[~2024-08-16 17:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=O4RAjXI--3-9@tuta.io \
    --to=guix-patches@gnu.org \
    --cc=72673@debbugs.gnu.org \
    --cc=apoorvs@tuta.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).