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" . "500000") ("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 <help-guix@gnu.org> 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" . "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: >> > > 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 >