gtk.nix (853B)
1 # modules/home/gtk.nix — icons, cursor, dark preference. 2 # The cursor theme files are symlinked from the dotfiles checkout in tools.nix 3 # (modernxp-retro-black for Xcursor, modernxp-retro-black-hyprcursor for 4 # Hyprland), so there is no package to point home.pointerCursor at. 5 { ... }: 6 { 7 flake.homeModules.gtk = 8 { pkgs, ... }: 9 { 10 gtk = { 11 enable = true; 12 iconTheme = { 13 name = "Yaru-purple"; 14 package = pkgs.yaru-theme; 15 }; 16 cursorTheme = { 17 name = "modernxp-retro-black"; 18 size = 24; 19 }; 20 colorScheme = "dark"; # GTK prefer-dark 21 }; 22 23 home.sessionVariables = { 24 XCURSOR_THEME = "modernxp-retro-black"; 25 XCURSOR_SIZE = "24"; 26 HYPRCURSOR_THEME = "modernxp-retro-black-hyprcursor"; # name from the theme's manifest.hl 27 HYPRCURSOR_SIZE = "24"; 28 }; 29 } 30 ; 31 }