about summary refs log tree commit diff
path: root/users/fcuny/desktop/gtk.nix
blob: 8bc11a2ed06d2a39b4ac7b864adc5ba33b795fc2 (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
35
36
{ 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";
      };
    };
  };

  services.gvfs.enable = true;
}