{ lib, main, config, pkgs, ... }:
{
  config = lib.mkIf main.info.graphical {
    gtk = {
      enable = true;
      gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";

      font = {
        package = pkgs.dejavu_fonts;
        name = "DejaVu Sans";
        size = 10;
      };

      iconTheme = {
        package = pkgs.gnome.adwaita-icon-theme;
        name = "Adwaita-dark";
      };

      theme = {
        package = pkgs.gnome.gnome-themes-extra;
        name = "Adwaita-dark";
      };
    };

    qt = {
      enable = true;
      style = {
        package = pkgs.adwaita-qt;
        name = "adwaita-dark";
      };
      platformTheme.name = "adwaita";
    };
  };
}
