dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

68 lines1954 bytesNix
1# GTK and cursor theme, as nwg-look had set them on CachyOS (settings.ini,
2# .gtkrc-2.0, GSettings). Qt is themed by config/qt6ct and config/kvantum.
3#
4# These files are now written by Nix, so change the theme here rather than in
5# nwg-look (it can still preview themes, but can't save over these files).
6{ pkgs, ... }:
7{
8 home.pointerCursor = {
9 enable = true;
10 name = "BreezeX-Black";
11 package = pkgs.breezex-cursor;
12 size = 28;
13 gtk.enable = true;
14 x11.enable = true;
15 };
16
17 gtk = {
18 enable = true;
19 theme = {
20 name = "Adwaita-dark";
21 package = pkgs.gnome-themes-extra;
22 };
23 iconTheme = {
24 name = "breeze-dark";
25 package = pkgs.kdePackages.breeze-icons;
26 };
27 font = {
28 name = "Adwaita Sans";
29 size = 11;
30 package = pkgs.adwaita-fonts;
31 };
32 gtk2.extraConfig = ''
33 gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
34 gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
35 gtk-button-images=0
36 gtk-menu-images=0
37 gtk-enable-event-sounds=1
38 gtk-enable-input-feedback-sounds=0
39 gtk-xft-antialias=1
40 gtk-xft-hinting=1
41 gtk-xft-hintstyle="hintslight"
42 gtk-xft-rgba="rgb"
43 '';
44 gtk3.extraConfig = {
45 gtk-toolbar-style = "GTK_TOOLBAR_BOTH_HORIZ";
46 gtk-toolbar-icon-size = "GTK_ICON_SIZE_LARGE_TOOLBAR";
47 gtk-button-images = 0;
48 gtk-menu-images = 0;
49 gtk-enable-event-sounds = 1;
50 gtk-enable-input-feedback-sounds = 0;
51 gtk-xft-antialias = 1;
52 gtk-xft-hinting = 1;
53 gtk-xft-hintstyle = "hintslight";
54 gtk-xft-rgba = "rgb";
55 gtk-application-prefer-dark-theme = 1;
56 };
57 gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
58 };
59
60 dconf.settings."org/gnome/desktop/interface" = {
61 color-scheme = "prefer-dark";
62 gtk-theme = "Adwaita-dark";
63 icon-theme = "breeze-dark";
64 cursor-theme = "BreezeX-Black";
65 cursor-size = 28;
66 font-name = "Adwaita Sans 11";
67 };
68}