nixos-configs/modules/desktop/theme/cursors/default.nix
matt1432 6b097eb53f
All checks were successful
Discord / discord commits (push) Has been skipped
fix(cursor): get rid of gtk4 warning and refactor
2025-01-05 22:19:36 -05:00

33 lines
641 B
Nix

self: {
lib,
osConfig,
pkgs,
...
}: let
inherit (self.scopedPackages.${pkgs.system}) dracula;
inherit (lib) mkIf;
cfg = osConfig.roles.desktop;
in {
config = mkIf cfg.enable {
home.pointerCursor = {
name = "Dracula-cursors";
package = dracula.gtk;
size = 24;
gtk.enable = true;
hyprcursor.enable = true;
};
# Fixes Gtk4 apps complaining about mismatched cursor size
wayland.windowManager.hyprland.settings = {
exec-once = [
"gsettings set org.gnome.desktop.interface cursor-size 30"
];
};
};
# For accurate stack trace
_file = ./default.nix;
}