From c188003188d714feaefba65fce0c49cbea0098de Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 14 Sep 2024 01:49:58 +0200 Subject: [PATCH] nixos/gnome: set theme for gtk-3 apps --- nix-os/desktopManagers/gnome.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix-os/desktopManagers/gnome.nix b/nix-os/desktopManagers/gnome.nix index 964b906..f13c706 100644 --- a/nix-os/desktopManagers/gnome.nix +++ b/nix-os/desktopManagers/gnome.nix @@ -81,8 +81,14 @@ in # unstablePkgs.gnomeExtensions.translate-indicator # translate-shell pavucontrol - #FIXME: Apply the cursor theme also in GTK3 config google-cursor ]; + + environment.etc."xdg/gtk-3.0/settings.ini".text = '' + [Settings] + gtk-cursor-theme-name=${config.proot.dconf.rules."org/gnome/desktop/interface".cursor-theme} + '' + lib.optionalString (lib.hasInfix "dark" config.proot.dconf.rules."org/gnome/desktop/interface".color-scheme) '' + gtk-application-prefer-dark-theme=true + ''; }; }