From b15f8de08f8803d6d5be4fd0218046aab4c901b2 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Mon, 10 Feb 2025 23:24:02 +0100 Subject: [PATCH] services/gtk: add back dconf settings `xdg-desktop-portal-gtk` did not seem to open my apps with the correct themes when using `xdg-open`, which I assume to be because it's trying to read from `dconf` in order to set the themes correctly. --- modules/services/gtk/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/services/gtk/default.nix b/modules/services/gtk/default.nix index 16963fa..93a83a3 100644 --- a/modules/services/gtk/default.nix +++ b/modules/services/gtk/default.nix @@ -46,6 +46,18 @@ in { GTK_THEME = "${gtkSettings.gtk-theme-name}"; }; }; - programs.dconf.enable = false; + + programs.dconf = { + enable = true; + profiles.user.databases = singleton { + lockAll = true; + settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-${styleCfg.scheme.variant}"; + gtk-theme = styleCfg.gtk.theme.name; + }; + }; + }; + }; }; }