feat: cursor refactor

This commit is contained in:
Barrett Ruth 2026-02-14 10:28:08 -05:00
parent 30286dbedb
commit 8952984da2
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 9 additions and 5 deletions

View file

@ -12,10 +12,6 @@ env = QT_QPA_PLATFORM,wayland
env = GDK_BACKEND,wayland,x11
env = SDL_VIDEODRIVER,wayland
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
env = HYPRCURSOR_THEME,Apple_Cursor
cursor {
no_hardware_cursors = true
}

View file

@ -14,6 +14,14 @@ let
}
'';
cursor = config.home.pointerCursor;
cursorEnv = lib.optionalString (cursor != null) ''
env = XCURSOR_SIZE,${toString cursor.size}
env = HYPRCURSOR_SIZE,${toString cursor.size}
env = HYPRCURSOR_THEME,${cursor.name}
'';
nvidiaEnv = lib.optionalString (hostConfig.gpu == "nvidia") ''
env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
@ -32,7 +40,7 @@ in
systemd.enable = hostConfig.isNixOS;
extraConfig = ''
${nvidiaEnv}
${cursorEnv}${nvidiaEnv}
source = $XDG_CONFIG_HOME/nix/config/hypr/hyprland.conf
'';
};