all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unable to edit pulseaudio config file
@ 2020-06-12  5:56 Nathan Dehnel
  2020-06-20 17:38 ` Jakub Kądziołka
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Dehnel @ 2020-06-12  5:56 UTC (permalink / raw)
  To: help-guix

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?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to edit pulseaudio config file
  2020-06-12  5:56 Unable to edit pulseaudio config file Nathan Dehnel
@ 2020-06-20 17:38 ` Jakub Kądziołka
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kądziołka @ 2020-06-20 17:38 UTC (permalink / raw)
  To: Nathan Dehnel; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-20 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-12  5:56 Unable to edit pulseaudio config file Nathan Dehnel
2020-06-20 17:38 ` Jakub Kądziołka

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.