Gary,
Hello! I think I understand now. For modify-services, since dbus-root-service-type is already in %desktop-services, all I need to do now is this? I just read the reference manual for this so correct me if I'm wrong: (modify-services %desktop-services (dbus-configuration (services '(list flatpak))) (delete gdm-service-type)) I tried this and get a "source expression failed to match any pattern" error. I also tried it without the "'" for the services list. Thanks in advance! On Monday, June 8th, 2026 at 6:01 AM, Gary Johnson <[email protected]> wrote: > "g|ass.Houses" <[email protected]> writes: > > > Hello Gary! Yes, I admit that I put the network services in the wrong > > place. However, in regards to the home-service-type, am I using it > > correctly? The error (without the " config => " persists. > > Hi again, > > Unfortunately no. Your syntax was wrong in several places. > > Errors in your first example: > > >> (services > >> (append > >> (list > >> (home-dbus-service-type > >> (home-configuration > >> (dbus "flatpak"))))))) > >> (modify-services %desktop-services > >> ;; network services here > >> (delete gdm-service-type)))) > > 1. You can't include home-dbus-service-type in an operating-system's services > list. This belongs in a home-environment configuration. > > 2. You don't override the dbus field of a home-configuration with the string > "flatpak". It needs to be a dbus package object. As it already defaults to > the built-in dbus package in Guix, you shouldn't need to change this unless > you have created a custom dbus package. > > 3. You have 2 too many parens at the end of your services form. Thus, append > has no second argument to append your initial list of services to. > > 4. The extra parens also mean that your modify-services form is defined > outside of your operating-system definition, making it dead code. > > Errors in your second example: > > >> (modify-services %desktop-servuces > >> (home-dbus-service-type config => > >> (home-configuration > >> (inherit config) > >> (dbus "flatpak"))))))) > > 1. The %desktop-services list does not contain home-dbus-service-type, so you > cannot update its configuration using modify-services. > > 2. As before, you don't override the dbus field of a home-configuration with > the string "flatpak". It needs to be a dbus package object. As it already > defaults to the built-in dbus package in Guix, you shouldn't need to change > this unless you have created a custom dbus package. > > > I would encourage you to try the two examples I provided in my previous email: > > Solution 1 (for an operating-system definition): > > >> (operating-system > >> ;; First, include various fields like bootloader, file-sytems, users, > >> groups, etc. > >> ;; Next, add flatpak to your packages list. > >> (packages (cons* flatpak > >> %base-packages)) > >> ;; Then, include your services list below by using cons* to add extra > >> services to %desktop-services. > >> ;; If you want to remove or reconfigure a service that is in > >> %desktop-services, use modify-services. > >> ;; Note that (service dbus-root-service-type) is already in > >> %desktop-services and does not need to be added. > >> (services (cons* ;; Add a service > >> ;; Add another service > >> ;; Add yet another service > >> (modify-services %desktop-services > >> (delete gdm-service-type)))) > > Solution 2 (for a home-environment definition): > > >> (home-environment > >> ;; First, add flatpak to your packages list. > >> (packages (list flatpak)) > >> ;; Then, include your services list below by using cons* to add extra > >> services to %base-home-services. > >> ;; Note that you do not need to override the default > >> home-dbus-configuration. > >> (services (cons* (service home-dbus-service-type) > >> ;; Add more services if you want > >> %base-home-services))) > > Good luck and happy hacking! > Gary > > -- > GPG Key ID: C4FBEDBD > Use `gpg --search-keys [email protected]' to find me > Protect yourself from surveillance: https://emailselfdefense.fsf.org > ======================================================================= > () ascii ribbon campaign - against html e-mail > /\ www.asciiribbon.org - against proprietary attachments > > Why is HTML email a security nightmare? See https://useplaintext.email/ > > Please avoid sending me MS-Office attachments. > See http://www.gnu.org/philosophy/no-word-attachments.html >
