unofficial mirror of help-guix@gnu.org 
 help / color / 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, back to index

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

unofficial mirror of help-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git