home-manager icon indicating copy to clipboard operation
home-manager copied to clipboard

bug: `dconf.enable` fails activation

Open bobvanderlinden opened this issue 2 months ago • 2 comments

Are you following the right branch?

  • [X] My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • [X] I have searched the existing issues

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 avatar Apr 30 '24 20:04 bobvanderlinden

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.

bobvanderlinden avatar Apr 30 '24 20:04 bobvanderlinden

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

RamReso avatar May 01 '24 11:05 RamReso