Hi g|ass.Houses,

Your Scheme code is invalid in both examples.

If you are writing an operating-system definition, it should look like this:

(operating-system
 ;; First, include various fields like bootloader, file-sytems, users, groups, 
etc.
 ;; Next, add flatpak to your packages list.
 (packages (list flatpak))
 ;; 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))))


If instead you are writing a home-environment definition, it should look like 
this:

(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


"g|ass.Houses" <[email protected]> writes:

> Hello! I'm back.
> Here is the service config:
>
> (services 
>  (append
>   (list
>    (home-dbus-service-type
>     (home-configuration
>      (dbus "flatpak")))))))
> (modify-services %desktop-services
>  ;; network services here
>  (delete gdm-service-type))))
>
> When my config is like this, I get a "Wrong type to apply" error.
> When the config is like this:
>
> (modify-services %desktop-servuces
>  (home-dbus-service-type config =>
>     (home-configuration
>      (inherit config)
>      (dbus "flatpak")))))))
> I get a "source expression failed to match any pattern" error.
>
> On Thursday, June 4th, 2026 at 10:25 AM, Mario Calcagno 
> <[email protected]> wrote:
>
>> Without seeing the config itself is a little hard to say what is wrong, I 
>> think it's because home-dbus-service-type can't be used in a 
>> operating-system definition.
>> 
>> When you return home can you send the entire config you us and, the lutris's 
>> error?
>> 
>> 
>> Sent from Proton Mail for Android.
>> 
>> -------- Original Message --------
>> On Thursday, 06/04/26 at 17:19 g|ass.Houses <[email protected]> wrote:
>> 
>> Yes, $XDG_DATA_DIRS is modified and in my bash_profile, according to
>> what Roman said. I'm using Openbox so it doesn't have a service. I
>> tried adding home-dbus-service-type to my service list (outside of
>> modify %desktop-services) and get an error about the source
>> expression (I figured it's in the wrong place). I'll have to see the
>> full error I receive when I return home. Is there any idea what it
>> could be given I what I have stated currently?
>> 
>> On Thursday, June 4th, 2026 at 8:43 AM, Mario Calcagno 
>> <[email protected]> wrote:
>> 
>> > So I went and checked, and it seems that %desktop-services already 
>> > contains the dbus service, so it shouldn't be necessary.
>> > Did you modify $XDG_DATA_DIRS correctly?
>> >
>> > I'm using sway so I built my environment from the ground up.
>> >
>> > P.S. home-service-dbus-type is used when configuring a home environment 
>> > through "guix home" command so I don't think it can be used when defining 
>> > an operating-system
>> > for the "guix system" command
>> >
>> > Sent with Proton Mail secure email.
>> >
>> > On Thursday, June 4th, 2026 at 2:50 PM, g|ass.Houses <[email protected]> 
>> > wrote:
>> >
>> > >
>> > > Hello! For that home-dbus-service-type, do I add it to my 
>> > > modify-services %desktop-services type? Thanks in advance!
>> > >
>> > >
>> > > On Thursday, June 4th, 2026 at 7:13 AM, Mario Calcagno 
>> > > <[email protected]> wrote:
>> > >
>> > > > In addition to what Roman said, I also have the home-dbus-servive-type 
>> > > > in my guix home configuration. So if you're not using a DE like Gnome 
>> > > > or KDE Plasma you probably need to add it to your config.
>> > > >
>> > > > If you're not using guix home you should be able to add it to your 
>> > > > system config using "dbus-root-service-type".
>> > > >
>> > > >
>> > > >
>> > > > Sent with Proton Mail secure email.
>> > > >
>> > > > On Wednesday, June 3rd, 2026 at 7:36 PM, "g|ass.Houses" via 
>> > > > <[email protected]> wrote:
>> > > >
>> > > > > Hello, I had another qusstion. I am trying to get flatpaks
>> > > > > to work on Guix (namely Lutris) and received a dbus error,
>> > > > > typically asking for the Dbus portal service. What is the
>> > > > > proper configuration (as in, the proper code in the
>> > > > > config.scm file) to get flatpaks working on a Guix system
>> > > > > without running dbus-run-session?
>> > > > >
>> > > > > Thank you

-- 
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

Reply via email to