1
0
Fork 0

fix(home-manager): move cursor into it's own module

This commit is contained in:
Philipp 2025-05-31 15:46:44 +02:00
parent 91528710f0
commit af1f017749
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
2 changed files with 30 additions and 8 deletions

View file

@ -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;
};
};
}

View file

@ -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;
};
};
}