From 823a2c69528b6757c3b5757bc56de394f82d68ea 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix-os/desktopManagers/gnome.nix b/nix-os/desktopManagers/gnome.nix index 964b906..f049e94 100644 --- a/nix-os/desktopManagers/gnome.nix +++ b/nix-os/desktopManagers/gnome.nix @@ -84,5 +84,12 @@ in #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 + ''; }; }