diff --git a/modules/applications/hyprland.nix b/modules/applications/hyprland.nix index 2638d2c..2d360ac 100644 --- a/modules/applications/hyprland.nix +++ b/modules/applications/hyprland.nix @@ -58,6 +58,7 @@ home.sessionVariables.NIXOS_OZONE_WL = "1"; wayland.windowManager.hyprland.plugins = [ #pkgs-unstable.hyprlandPlugins.hyprspace # currently broken + #self.packages.${pkgs-unstable.system}.hypr-dynamic-cursors-manual #pkgs-unstable.hyprlandPlugins.hypr-dynamic-cursors # currently broken ]; wayland.windowManager.hyprland.configType = "hyprlang"; diff --git a/modules/packages/hyprlandPlugins.nix b/modules/packages/hyprlandPlugins.nix new file mode 100644 index 0000000..ddc580a --- /dev/null +++ b/modules/packages/hyprlandPlugins.nix @@ -0,0 +1,43 @@ +_: { + perSystem = {pkgs-unstable, ...}: { + packages.hypr-dynamic-cursors-manual = { + lib, + mkHyprlandPlugin, + fetchFromGitHub, + nix-update-script, +}: + +mkHyprlandPlugin { + pluginName = "hypr-dynamic-cursors"; + version = "0-unstable-2026-05-29"; + + src = fetchFromGitHub { + owner = "VirtCode"; + repo = "hypr-dynamic-cursors"; + rev = "1de08deb7d495124ce88b342fecc7e7542d0672f"; + hash = "sha256-Ck9dFUfj/zDSab16CzsGWEMNeSNDhhDOB0JWeHzVvjk="; + }; + + dontUseCmakeConfigure = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib + mv out/dynamic-cursors.so $out/lib/libhypr-dynamic-cursors.so + + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; + + meta = { + description = "Plugin to make your Hyprland cursor more realistic"; + homepage = "https://github.com/VirtCode/hypr-dynamic-cursors"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ donovanglover ]; + platforms = lib.platforms.linux; + }; +}; + }; +}