From aadc482c2fa9c12eea2c57542ef77c5d5e12fbd2 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Wed, 28 Jan 2026 21:41:12 -0500 Subject: [PATCH] refactor: move `hyprland` cursor theme to `home-manager` --- config/packages.nix | 14 ++------------ home-manager/wayland/hyprland.nix | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/config/packages.nix b/config/packages.nix index 9f63e06..4b8f079 100644 --- a/config/packages.nix +++ b/config/packages.nix @@ -1,14 +1,5 @@ -{ pkgs, lib, macos-hyprcursor-src, ... }: -let - macos-hyprcursor = pkgs.stdenv.mkDerivation { - name = "macos-hyprcursor"; - src = macos-hyprcursor-src; - installPhase = '' - mkdir -p $out/share/icons - cp -R themes/SVG/"macOS (SVG)" $out/share/icons/macos - ''; - }; -in { +{ pkgs, lib, ... }: +{ environment.systemPackages = with pkgs; let aspell' = aspellWithDicts.override { aspell = aspell.overrideAttrs (super: { @@ -38,7 +29,6 @@ in { playerctl pamixer ffmpeg - macos-hyprcursor # System management htop-vim diff --git a/home-manager/wayland/hyprland.nix b/home-manager/wayland/hyprland.nix index 72f2bdc..e081f48 100644 --- a/home-manager/wayland/hyprland.nix +++ b/home-manager/wayland/hyprland.nix @@ -1,8 +1,21 @@ -{ pkgs, lib, ... }: +{ pkgs, lib, macos-hyprcursor-src, ... }: let scripts = ./scripts; shell = "quickshell"; + + # Cursor Theme + macos-hyprcursor = pkgs.stdenv.mkDerivation { + name = "macos-hyprcursor"; + src = macos-hyprcursor-src; + installPhase = '' + mkdir -p $out/share/icons + cp -R themes/SVG/"macOS (SVG)" $out/share/icons/macos + ''; + }; in { + + home.packages = [ macos-hyprcursor ]; + wayland.windowManager.hyprland = { enable = true; systemd.enable = true; @@ -16,7 +29,7 @@ in { env = [ "HYPRCURSOR_THEME,macos" - "HYPRCURSOR_SIZE,12" + "HYPRCURSOR_SIZE,24" ]; general = {