nixos-configs/nixosModules/desktop/theme/cursors.nix
matt1432 94bd0d81f5
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(desktop): place all theming config in same folder
2024-08-05 16:23:53 -04:00

41 lines
933 B
Nix

self: {pkgs, ...}: {
config = let
inherit (self.legacyPackages.${pkgs.system}) dracula;
cursorTheme = dracula.hyprcursor;
cursorThemeName = "Dracula-cursors";
hyprcursorThemeName = "Dracula-hyprcursor";
cursorSize = 24;
in {
home.pointerCursor = {
name = cursorThemeName;
package = dracula.gtk;
size = cursorSize;
gtk.enable = true;
x11 = {
enable = true;
defaultCursor = cursorThemeName;
};
};
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
wayland.windowManager.hyprland = {
settings = {
envd = [
"XCURSOR_THEME, ${cursorThemeName}"
"XCURSOR_SIZE, ${toString cursorSize}"
];
exec-once = [
"hyprctl setcursor ${hyprcursorThemeName} ${toString cursorSize}"
];
};
};
};
# For accurate stack trace
_file = ./cursors.nix;
}