From af1f017749549ddc658d1b27f960b9d4e4418784 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 31 May 2025 15:46:44 +0200 Subject: [PATCH] fix(home-manager): move cursor into it's own module --- .../philipp@bodenheizung/default.nix | 9 +----- modules/home/desktop/cursor/default.nix | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 modules/home/desktop/cursor/default.nix diff --git a/homes/x86_64-linux/philipp@bodenheizung/default.nix b/homes/x86_64-linux/philipp@bodenheizung/default.nix index 6035b0e..a0f09f9 100644 --- a/homes/x86_64-linux/philipp@bodenheizung/default.nix +++ b/homes/x86_64-linux/philipp@bodenheizung/default.nix @@ -6,14 +6,6 @@ }: with lib.${namespace}; { - home.pointerCursor = { - gtk.enable = true; - x11.enable = true; - package = pkgs.rose-pine-cursor; - name = "BreezeX-RosePine-Linux"; - size = 32; - }; - awesome-flake = { cli-apps = { fish = enabled; @@ -47,6 +39,7 @@ with lib.${namespace}; hotkeys = enabled; panel = enabled; spectacle = enabled; + cursor = enabled; }; }; } diff --git a/modules/home/desktop/cursor/default.nix b/modules/home/desktop/cursor/default.nix new file mode 100644 index 0000000..6687681 --- /dev/null +++ b/modules/home/desktop/cursor/default.nix @@ -0,0 +1,29 @@ +{ + config, + pkgs, + lib, + namespace, + ... +}: +with lib; +with lib.${namespace}; +let + cfg = config.${namespace}.desktop.cursor; +in +{ + options.${namespace}.desktop.cursor = with types; { + enable = mkBoolOpt false "Whether or not to enable custom cursor settings."; + }; + + config = mkIf cfg.enable { + home.pointerCursor = { + gtk.enable = true; + x11.enable = true; + package = pkgs.rose-pine-cursor; + name = "BreezeX-RosePine-Linux"; + size = 32; + }; + + }; + +}