zaneyos/config/home/gtk-qt.nix
Clément Patout 2489bf5e4c fix: extraconfig is already inside [Settings]
With the current config I get something like:
```
[Settings]
Settings=gtk-application-prefer-dark-theme=1
```

This change should fix it and produce:
```
[Settings]
gtk-application-prefer-dark-theme=1
```
in ~/.config/gtk-4.0/settings.ini
2024-01-22 12:10:48 +00:00

51 lines
1.0 KiB
Nix

{ pkgs, config, gtkThemeFromScheme, ... }:
{
# Configure Cursor Theme
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 24;
};
# Theme GTK
gtk = {
enable = true;
font = {
name = "Ubuntu";
size = 12;
package = pkgs.ubuntu_font_family;
};
theme = {
name = "${config.colorScheme.slug}";
package = gtkThemeFromScheme {scheme = config.colorScheme;};
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
cursorTheme = {
name = "Bibata-Modern-Ice";
package = pkgs.bibata-cursors;
};
gtk3.extraConfig = {
gtk-application-prefer-dark-theme=1;
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme=1;
};
};
# Theme QT -> GTK
qt = {
enable = true;
platformTheme = "gtk";
style = {
name = "adwaita-dark";
package = pkgs.adwaita-qt;
};
};
}