Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

Hello guys! If gtk.enable is true, then I’m getting the following error message:

× home-manager-tornax.service - Home Manager environment for tornax
     Loaded: loaded (/etc/systemd/system/home-manager-tornax.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2023-06-14 16:36:05 CEST; 41s ago
   Duration: 23.844s
    Process: 57500 ExecStart=/nix/store/0yiywc863z3ipsmm3aj3k9y2k8cf6s7i-hm-setup-env /nix/store/0zhq0qj169418m5b8n9vhn32y0if1q3v-home-manager-generation (code=exited, status=1/FAILURE)
   Main PID: 57500 (code=exited, status=1/FAILURE)
         IP: 0B in, 0B out
        CPU: 2.162s

Jun 14 16:36:05 pc hm-activate-tornax[58601]: Writing theme set to /home/tornax/.cache/bat/themes.bin ... okay
Jun 14 16:36:05 pc hm-activate-tornax[58601]: Writing syntax set to /home/tornax/.cache/bat/syntaxes.bin ... okay
Jun 14 16:36:05 pc hm-activate-tornax[58601]: Writing metadata to folder /home/tornax/.cache/bat ... okay
Jun 14 16:36:05 pc hm-activate-tornax[57500]: Activating installPackages
Jun 14 16:36:05 pc hm-activate-tornax[57500]: Activating dconfSettings
Jun 14 16:36:05 pc hm-activate-tornax[58620]: error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
Jun 14 16:36:05 pc systemd[1]: home-manager-tornax.service: Main process exited, code=exited, status=1/FAILURE
Jun 14 16:36:05 pc systemd[1]: home-manager-tornax.service: Failed with result 'exit-code'.
Jun 14 16:36:05 pc systemd[1]: Failed to start Home Manager environment for tornax.
Jun 14 16:36:05 pc systemd[1]: home-manager-tornax.service: Consumed 2.162s CPU time, no IP traffic.

and if I set it to false, then I don’t have any errors anymore. Does anyone know why this happens and how I can fix this?

Set programs.dconf.enable = true; in your NixOS configuration.

It is pretty much expected to be present on any desktop using GTK apps. GNOME and other desktop environment NixOS modules will enable it for you but if you are rolling your own DE, you need to enable it manually.

5 Likes