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.
This commit is contained in:
Anthony Rodriguez 2025-02-10 23:24:02 +01:00
parent a6e1683060
commit b15f8de08f
Signed by: nezia
SSH key fingerprint: SHA256:Ihfpl0rUpqDevYqnzSR34OYfVLbDNkBiUjs3CpX4ykA

View file

@ -46,6 +46,18 @@ in {
GTK_THEME = "${gtkSettings.gtk-theme-name}"; 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;
};
};
};
};
}; };
} }