From 1bc69d1bb005a8c58acb91bb238a79acae6bcb50 Mon Sep 17 00:00:00 2001
From: Dmitry Voronin <hi@voronind.com>
Date: Sat, 18 Jan 2025 18:46:03 +0300
Subject: [PATCH] Style: Use nix-cursor Bibata Modern.

---
 flake.lock       | 21 +++++++++++++++++++++
 flake.nix        |  6 ++++++
 option/Style.nix | 13 +++++++++++--
 3 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/flake.lock b/flake.lock
index 653a96a..90a0ff4 100644
--- a/flake.lock
+++ b/flake.lock
@@ -202,6 +202,26 @@
         "type": "github"
       }
     },
+    "nix-cursors": {
+      "inputs": {
+        "nixpkgs": [
+          "nixpkgs"
+        ]
+      },
+      "locked": {
+        "lastModified": 1716041700,
+        "narHash": "sha256-4jDR/KQmtsDw/nCvpy9VvWQgtc+4R4eyrb8eJSz+KCw=",
+        "owner": "LilleAila",
+        "repo": "nix-cursors",
+        "rev": "d119b747e47a7a24660676f59c77272d664ec61e",
+        "type": "github"
+      },
+      "original": {
+        "owner": "LilleAila",
+        "repo": "nix-cursors",
+        "type": "github"
+      }
+    },
     "nix-formatter-pack": {
       "inputs": {
         "nixpkgs": [
@@ -754,6 +774,7 @@
     "root": {
       "inputs": {
         "home-manager": "home-manager",
+        "nix-cursors": "nix-cursors",
         "nix-on-droid": "nix-on-droid",
         "nixpkgs": "nixpkgs",
         "nixpkgsJobber": "nixpkgsJobber",
diff --git a/flake.nix b/flake.nix
index 6a72eeb..206518c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -29,6 +29,12 @@
       };
     };
 
+    # SOURCE: https://github.com/LilleAila/nix-cursors
+    nix-cursors = {
+      url = "github:LilleAila/nix-cursors";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
+
     nixpkgsJobber.url = "github:nixos/nixpkgs/051f920625ab5aabe37c920346e3e69d7d34400e";
     poetry2nixJobber.url = "github:nix-community/poetry2nix/304f8235fb0729fd48567af34fcd1b58d18f9b95";
 
diff --git a/option/Style.nix b/option/Style.nix
index eeebac4..1b69ed0 100644
--- a/option/Style.nix
+++ b/option/Style.nix
@@ -74,10 +74,19 @@ in
     };
 
     cursor = {
-      name = mkStrOption "phinger-cursors-light";
-      package = mkPkgOption pkgs.phinger-cursors;
+      name = mkStrOption "Bibata-Modern-Custom";
       size = mkIntOption 24;
+      package = mkPkgOption (inputs.nix-cursors.packages.${pkgs.system}.bibata-modern-cursor.override {
+        accent_color = "#${cfg.color.accent}";
+        background_color = "#${cfg.color.bg.light}";
+        outline_color = "#${cfg.color.border}";
+      });
     };
+    # cursor = {
+    #   name = mkStrOption "phinger-cursors-light";
+    #   package = mkPkgOption pkgs.phinger-cursors;
+    #   size = mkIntOption 24;
+    # };
 
     font = {
       emoji = {