diff options
| author | adikro <adikro@disroot.org> | 2026-01-11 20:53:40 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-01-11 20:53:40 +0100 |
| commit | 760a0edc2937fab375898bbd2f2a3011eb8c9756 (patch) | |
| tree | d5841eb7dc00ef23f6d6a9b52699e83709a5f3cb /hm/env/cursor.nix | |
| parent | 5d0f2554cf56459b0afd27d3ed437a7fa50602a9 (diff) | |
way too many changes to describe
Diffstat (limited to 'hm/env/cursor.nix')
| -rw-r--r-- | hm/env/cursor.nix | 30 |
1 files changed, 30 insertions, 0 deletions
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; + }; + }; +} |
