help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to edit pulseaudio config file


From: Jakub Kądziołka
Subject: Re: Unable to edit pulseaudio config file
Date: Sat, 20 Jun 2020 19:38:32 +0200

On Fri, Jun 12, 2020 at 12:56:38AM -0500, Nathan Dehnel wrote:
> I made a modified config file in
> /home/nathan/.config/pulse/default.pa, and then added this to
> config.scm, per the manual:
> https://guix.gnu.org/manual/en/html_node/Sound-Services.html
> 
> (service pulseaudio-service-type
>              (pulseaudio-configuration (script-file (file-append
> pulseaudio "/home/nathan/.config/pulse/default.pa"))))
> 
> But guix system reconfigure gives:
> 
> guix system: error: duplicate 'pulse' entry for /etc
> 
> How do I fix this?

If you're using %desktop-services, they already contain a pulseaudio
service. You should use modify-services to change the configuration,
something like this should work:

(modify-services %desktop-services
  (pulseaudio-service-type config =>
    (pulseaudio-configuration
      (inherit config)
      (script-file "/home/nathan/.config/pulse/default.pa"))))

Note that the file-append you've suggested would result in a path like
/gnu/store/...-pulseaudio/home/nathan/.config/pulse/default.pa

Regards,
Jakub Kądziołka

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]