fix(home-manager): move cursor into it's own module
This commit is contained in:
parent
91528710f0
commit
af1f017749
2 changed files with 30 additions and 8 deletions
|
@ -6,14 +6,6 @@
|
||||||
}:
|
}:
|
||||||
with lib.${namespace};
|
with lib.${namespace};
|
||||||
{
|
{
|
||||||
home.pointerCursor = {
|
|
||||||
gtk.enable = true;
|
|
||||||
x11.enable = true;
|
|
||||||
package = pkgs.rose-pine-cursor;
|
|
||||||
name = "BreezeX-RosePine-Linux";
|
|
||||||
size = 32;
|
|
||||||
};
|
|
||||||
|
|
||||||
awesome-flake = {
|
awesome-flake = {
|
||||||
cli-apps = {
|
cli-apps = {
|
||||||
fish = enabled;
|
fish = enabled;
|
||||||
|
@ -47,6 +39,7 @@ with lib.${namespace};
|
||||||
hotkeys = enabled;
|
hotkeys = enabled;
|
||||||
panel = enabled;
|
panel = enabled;
|
||||||
spectacle = enabled;
|
spectacle = enabled;
|
||||||
|
cursor = enabled;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
29
modules/home/desktop/cursor/default.nix
Normal file
29
modules/home/desktop/cursor/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue