aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/gtk/default.nix
blob: 05a9807ca905544495486f448d418811172d3392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# GTK - GTK3/GTK4 theme configuration (Nightfox dark theme)
{
  config,
  lib,
  pkgs,
  ...
}:
{
  config = lib.mkIf config.desktop.enable {
    gtk = {
      enable = true;
      colorScheme = "dark";
      theme = {
        package = pkgs.nightfox-gtk-theme.override {
          tweakVariants = [ "carbonfox" ];
        };
        name = "Nightfox-Dark-Carbonfox";
      };
      gtk3.extraConfig = {
        gtk-application-prefer-dark-theme = 1;
      };
      gtk4.extraConfig = {
        gtk-application-prefer-dark-theme = 1;
      };
    };

    gtk.gtk4.theme = config.gtk.theme;

    dconf.settings = {
      "org/gnome/desktop/interface" = {
        color-scheme = "prefer-dark";
        gtk-theme = "Nightfox-Dark-Carbonfox";
      };
    };

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