nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
6.28k stars 1.68k forks source link

bug: `dconf.enable` fails activation #5357

Open bobvanderlinden opened 2 months ago

bobvanderlinden commented 2 months ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

Whenever I enable dconf.enable I get the following error upon activation:

Activating dconfSettings
error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

This stems from:

/nix/store/8h2pzyd30wfz1lirc1x040ha0hf23x1g-dconf-0.40.0/bin/dconf load / < /nix/store/y8537931zqxr0956z0wvfqjp7wjf3gnb-hm-dconf.ini

Where hm-dconf.ini contains:

[org/gnome/desktop/interface]
font-name='Noto Sans 10'
gtk-theme='Adwaita-dark'
icon-theme='Adwaita'

The following does succeed: dconf load / < empty.ini with empty.ini being an empty file.

Somehow dconf cannot recognize the org/gnome/desktop/interface? Note that this also fails for other sections (I've tried org/gnome/desktop/sound as well).

For now I've disabled dconf.enable.

Maintainer CC

@rycee

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.6.28, NixOS, 24.05 (Uakari), 24.05.20240427.58a1abd`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.2`
 - nixpkgs: `/run/current-system/nixpkgs`
bobvanderlinden commented 2 months ago

Hmm, I'm trying to find which version introduced this, but somehow all of my previous versions also run into this problem. I'm not entirely sure what dconf is doing/using and what exactly fails. This might not be a home-manager issue, but something off on my system.

RamReso commented 2 months ago

I have the same problem after setting the gtk theme in my config:

  gtk = {
    enable = true;
    iconTheme = {
      name = "Adwaita";
      package = pkgs.gnome.adwaita-icon-theme;
    };
    theme = {
      name = "Adwaita";
      package = pkgs.gnome.gnome-themes-extra;
    };
    gtk2.extraConfig = "gtk-application-prefer-dark-theme=true";
    gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
    gtk3.extraConfig = { gtk-application-prefer-dark-theme = true; };
    gtk4.extraConfig = { gtk-application-prefer-dark-theme = true; };
  };