diff --git a/config/packages.nix b/config/packages.nix index 3b32de0..3f752ad 100644 --- a/config/packages.nix +++ b/config/packages.nix @@ -1,5 +1,14 @@ -{ config, pkgs, lib, ... }: -{ +{ 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 { environment.systemPackages = with pkgs; let aspell' = aspellWithDicts.override { aspell = aspell.overrideAttrs (super: { @@ -26,6 +35,7 @@ playerctl pamixer ffmpeg + macos-hyprcursor # System management htop-vim diff --git a/flake.lock b/flake.lock index 916f601..66764d3 100644 --- a/flake.lock +++ b/flake.lock @@ -21,6 +21,22 @@ "type": "github" } }, + "macos-hyprcursor-src": { + "flake": false, + "locked": { + "lastModified": 1718363426, + "narHash": "sha256-UxmmzJABKJDRqwVkwSru+h06sOx9yp89L28PfgQDqsM=", + "owner": "driedpampas", + "repo": "macOS-hyprcursor", + "rev": "94b831a2ac5acb9162862efb84102c2b88dc1fa2", + "type": "github" + }, + "original": { + "owner": "driedpampas", + "repo": "macOS-hyprcursor", + "type": "github" + } + }, "mobile-nixos": { "flake": false, "locked": { @@ -71,6 +87,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "macos-hyprcursor-src": "macos-hyprcursor-src", "mobile-nixos": "mobile-nixos", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", diff --git a/flake.nix b/flake.nix index 60cbbde..34c1923 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,9 @@ inputs = { tokyo-night-sddm-src.url = "github:rototrash/tokyo-night-sddm"; tokyo-night-sddm-src.flake = false; + + macos-hyprcursor-src.url = "github:driedpampas/macOS-hyprcursor"; + macos-hyprcursor-src.flake = false; }; outputs = { self, nixpkgs, diff --git a/home-manager/wayland/hyprland.nix b/home-manager/wayland/hyprland.nix index f979f2d..d36efe2 100644 --- a/home-manager/wayland/hyprland.nix +++ b/home-manager/wayland/hyprland.nix @@ -23,6 +23,11 @@ in { "$terminal" = terminal; "$menu" = "rofi -show drun"; + env = [ + "HYPRCURSOR_THEME,macos" + "HYPRCURSOR_SIZE,12" + ]; + general = { layout = "hy3";