softwarelibre--- via <help-guix@gnu.org> writes:

> Unable to modify desktop services for sysctl tweaks.
>
> This happened after I tried reconfiguring my machine. I added:
>   
>          (modify-services %desktop-services
>              (delete gdm-service-type))
>            (modify-services %desktop-services
>              (sysctl-service-type config =>
>                                   (sysctl-configuration (settings (append 
> '(("fs.file-max" . "500000")
>                                                                             
> ("net.ipv4.ip_forward" . "1")
>                                                                             
> ("fs.inotify.max_user_watches" . "524288"))
>                                                                    
> %default-sysctl-settings)))))
>
>
> To my desktop home configuration. But. After some time the command exits with 
> a message that's not very helpful:
>
> sudo -E guix system reconfigure ./desktop-system-configuration.scm
> guix system: error: more than one target service 'dbus'

Imo the message is very helpful, it is telling you you have dbus service
twice. Dbus service is part of %desktop-services and you've put that twice into
your config according to the snippet. So you have introduced two dbus
services. You need to use just one %desktop-services and modify that,
not use the same list twice. modify-services just takes a list and
returns a modified list, in the first case removing gdm from it,
in the second case modifying sysctl.

Regards,
Rutherther

Reply via email to