Hello, thanks for responding, after experimenting on a secondary system I ended 
up fixing the issue.

Here's how my (services) section looks now:

  ;; Below is the list of system services.  To search for available
  ;; services, run 'guix system search KEYWORD' in a terminal.
  (services
   (append (list (service tor-service-type)
                 (service mate-desktop-service-type)
                 (set-xorg-configuration
                  (xorg-configuration (keyboard-layout keyboard-layout))))
           ;; This is the default list of services we
           ;; are appending to.
           (modify-services %desktop-services
             (sysctl-service-type config =>
                                  (sysctl-configuration (settings (append 
'(("net.ipv4.ip_forward" . "1")
                                                                            
("net.ipv6.conf.all.forwarding" . "1"))
                                                                   
%default-sysctl-settings))))
             (guix-service-type config =>
                                (guix-configuration (inherit config)
                                                    (substitute-urls (append 
(list
                                                                              
"local-substitution-url")
                                                                      
%default-substitute-urls))
                                                    (authorized-keys (append 
(list
                                                                              
%localch-pub-key)
                                                                      
%default-authorized-guix-keys)))))))

I will leave this here just in case someone else ends up in the same situation 
I did.Thanks to everyone :) 


Mar 21, 2025, 09:58 by ruthert...@ditigal.xyz:

> 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