From 760a0edc2937fab375898bbd2f2a3011eb8c9756 Mon Sep 17 00:00:00 2001 From: adikro Date: Sun, 11 Jan 2026 20:53:40 +0100 Subject: way too many changes to describe --- hm/env/cursor.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hm/env/cursor.nix (limited to 'hm/env/cursor.nix') diff --git a/hm/env/cursor.nix b/hm/env/cursor.nix new file mode 100644 index 0000000..49e8313 --- /dev/null +++ b/hm/env/cursor.nix @@ -0,0 +1,30 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.hm.env.cursor; + + miyabi-cursor-pkg = pkgs.runCommand "miyabi" {} '' + mkdir -p $out/share/icons/miyabi + cp -rv ${../../resources/cursors/miyabi}/* $out/share/icons/miyabi/ + ''; +in +{ + options.hm.env.cursor = { + enableMiyabi = lib.mkEnableOption "Enables the Miyabi cursor"; + + size = lib.mkOption { + type = lib.types.int; + default = 24; + description = "The size of the mouse cursor"; + }; + }; + + config = lib.mkIf cfg.enableMiyabi { + home.pointerCursor = { + gtk.enable = true; + x11.enable = true; + package = miyabi-cursor-pkg; + name = "miyabi"; + size = cfg.size; + }; + }; +} -- cgit v1.3