nixos/gnome: set theme for gtk-3 apps

This commit is contained in:
Wroclaw 2024-09-14 01:49:58 +02:00
parent 6c64393312
commit c188003188

View file

@ -81,8 +81,14 @@ in
# unstablePkgs.gnomeExtensions.translate-indicator # unstablePkgs.gnomeExtensions.translate-indicator
# translate-shell # translate-shell
pavucontrol pavucontrol
#FIXME: Apply the cursor theme also in GTK3 config
google-cursor 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
'';
}; };
} }