guix system: error: more than one target service 'dbus' when attempting to reconfigure sysctl values

2025-03-21 Thread softwarelibre--- via
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" . "50")
    
("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'

I have no other desktop service other than mate-desktop-service-type. This 
happens with or without deleting the gdm-service-type. I really don't care 
about dbus, but I need the sysctl corrections, does guix have an "idc" flag for 
these scenarios? Did I happen to catch a bad commit?

Thanks for your time



Re: Gnome "oh no something has gone wrong..."

2025-03-21 Thread Matteo Valsasina
On mer, mar 19, 2025 at 07:50  Christophe Pisteur  
wrote:
> After several tests, I was able to identify the source of the problem I
> was experiencing since switching to gnome 46: 
> As soon as I install pdfarranger 1.11.0, I get the "oh no something has
> gone wrong..." message. 

Hi, i looked for the same package in my system but is not installed.
Found poppler which is an Inputs of pdfarranger

Tryed to uninstall but problem persist

>
> I repeated the test by creating a new user of my current guix system,
> as well as on a freshly installed system with no packages other than
> those provided by the gnome desktop after installing guix system. 
> In both cases, if I install pdfarranger 1.11.0, the error message
> appears. If I uninstall pdfarranger, the error message no longer
> appears. 
>
> So for the time being, in order to have a working system, I avoid
> installing pdfarranger (without knowing what's causing the
> malfunction). 
>
> I'm not sure it this related to previous discussions about this error
> message:
> https://issues.guix.gnu.org/36924
>
> Christophe

Tryed also to inspect the error mensioned here without any luck of finding 
something useful

will inspect better 
Matteo



Re: guix system: error: more than one target service 'dbus' when attempting to reconfigure sysctl values

2025-03-21 Thread Rutherther
softwarelibre--- via  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" . "50")
>     
> ("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


Re: guix system: error: more than one target service 'dbus' when attempting to reconfigure sysctl values

2025-03-21 Thread softwarelibre--- via


Lost a previous email. This is my entire services configuration:

  (services
   (append (modify-services %desktop-services
 (delete gdm-service-type)
 (sysctl-service-type config =>
  (sysctl-configuration (settings (append 
'(("fs.file-max" . "50")
    
("net.ipv4.ip_forward" . "1")
    
("fs.inotify.max_user_watches" . "524288"))
   
%default-sysctl-settings
 (guix-service-type config =>
    (guix-configuration (inherit config)
    (substitute-urls (append 
(list
  
"https://substitutes.nonguix.org";)
  
%default-substitute-urls))
    (authorized-keys (append 
(list
  
(local-file
   
"./signing-key.pub"))
  
%default-authorized-guix-keys)

   (list (service tor-service-type)
  (service mate-desktop-service-type)
      (service lightdm-service-type)
  (set-xorg-configuration
  (xorg-configuration (keyboard-layout keyboard-layout
   ;; This is the default list of services we
   ;; are appending to.
   %desktop-services))

>From another response I received from @Rutherther my mistake here, aside of 
>using (modify-services ) three times is that I'm calling %desktop-services 
>twice in here. I haven't thought of an approach for this, other than, 
>declaring a:

(define %my-services
   (modify-services ...))

And calling %my-services instead of %desktop-services below :
;; This is the default list of services we are appending to.

Is this the correct way of fixing this problem? Im guessing there's a good 
practice with this.

Thanks to everyone who responded for their time
Mar 21, 2025, 10:26 by ir...@irfus.in:

> softwarelibre--- via  writes:
>
>> 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" . "50")
>>     
>> ("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:
>>
>
> By calling modify-services twice, you are inadvertently duplicating the list 
> of services from %desktop-services. What if you try instead to put all the 
> modifications you require in one such form?
>
> #+begin_src
>  (modify-services %base-services
>  (delete gdm-service-type)
>  (sysctl-service-type config => ...
>  ))
> #+end_src
>
> See the example under ’System Services’ in the manual section ’Using the 
> Configuration System’ for more clarity.
>
> Cheers.
> Irfan
>



Re: guix system: error: more than one target service 'dbus' when attempting to reconfigure sysctl values

2025-03-21 Thread Felix Lechner via
Hi softwarelibre,

On Thu, Mar 20 2025, softwarelibre--- via wrote:

>  (modify-services %desktop-services
>  (delete gdm-service-type))
>    (modify-services %desktop-services

Listing %desktop-services twice here does not look right to me.  Would
you please share your entire configuration?

Kind regards
Felix