about summary refs log tree commit diff
path: root/users/fcuny/desktop/gtk.nix
blob: eea9d5e81d047e256082694c576e4ea53366d44c (plain) (blame)
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
{ config, lib, pkgs, ... }:

{
  # This is required for the gtk configuration below
  home.packages = [
    pkgs.gnome3.dconf
  ];

  gtk = {
    enable = true;
    theme.name = "Adwaita";
    iconTheme = {
      name = "Adwaita";
      package = pkgs.gnome3.adwaita-icon-theme;
    };

    gtk2 = {
      extraConfig = ''
        gtk-xft-antialias = 1
        gtk-xft-hinting = 1
        gtk-xft-hintstyle = "hintslight"
        gtk-cursor-theme-size = cursorSize
      '';
    };

    gtk3 = {
      extraConfig = {
        gtk-xft-antialias = 1;
        gtk-xft-hinting = 1;
        gtk-xft-hintstyle = "hintslight";
      };
    };
  };
}