Skip to content

Commit 2a4607d

Browse files
committed
feat(config): add cursor
1 parent f2a2ab6 commit 2a4607d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

modules/config/cursor.nix

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
module-functions,
3+
pkgs,
4+
hm,
5+
...
6+
}:
7+
module-functions.module null "cursor" (cfg: {
8+
hm.home.pointerCursor = {
9+
gtk.enable = true;
10+
x11.enable = true;
11+
12+
inherit (cfg) name size package;
13+
};
14+
})

options/config/cursor.nix

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
option-functions,
3+
host,
4+
pkgs,
5+
...
6+
}:
7+
with option-functions;
8+
option null "cursor" {
9+
enable = enableOption "cursor" host.isDesktop;
10+
name = textOption "cursor name" "Bibata-Modern-Ice";
11+
size = numberOption "cursor size" 24;
12+
package = packageOption "package providing the cursor theme" pkgs.bibata-cursors;
13+
}

0 commit comments

Comments
 (0)