-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathgtk.nix
47 lines (40 loc) · 860 Bytes
/
gtk.nix
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
43
44
45
46
47
{
pkgs,
self,
config,
...
}:
let
theme = import "${self}/lib/theme" { inherit pkgs; };
in
{
home.pointerCursor = {
inherit (theme.cursorTheme) package size name;
gtk.enable = true;
x11.enable = true;
};
gtk = {
enable = true;
theme = theme.gtkTheme;
font = {
inherit (theme.fonts.default) package;
name = "${theme.fonts.default.name}, ${theme.fonts.default.size}";
};
gtk2 = {
configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
extraConfig = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk3.extraConfig = {
gtk-button-images = 1;
gtk-application-prefer-dark-theme = true;
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
iconTheme = {
inherit (theme.iconTheme) name package;
};
};
}