home: migrate 'cursor' module to new option
Make it part of 'home.wm' now, since that makes more sense. Not sure about making it related to 'i3' being activated though, will need to think about this in the future.
This commit is contained in:
parent
341450db5c
commit
530fb66e19
23
home/wm/cursor/default.nix
Normal file
23
home/wm/cursor/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.home.wm.cursor;
|
||||
|
||||
cfg_x = config.my.home.x;
|
||||
cfg_gtk = config.my.home.gtk;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.pointerCursor = {
|
||||
package = pkgs.ambroisie.vimix-cursors;
|
||||
name = "Vimix-cursors";
|
||||
|
||||
x11 = {
|
||||
inherit (cfg_x) enable;
|
||||
};
|
||||
|
||||
gtk = {
|
||||
inherit (cfg_gtk) enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -10,6 +10,7 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./cursor
|
||||
./dunst
|
||||
./i3
|
||||
./i3bar
|
||||
|
@ -25,6 +26,10 @@ in
|
|||
description = "Which window manager to use for home session";
|
||||
};
|
||||
|
||||
cursor = {
|
||||
enable = mkRelatedOption "dunst configuration" [ "i3" ];
|
||||
};
|
||||
|
||||
dunst = {
|
||||
enable = mkRelatedOption "dunst configuration" [ "i3" ];
|
||||
};
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.home.x;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
xsession.pointerCursor = {
|
||||
package = pkgs.ambroisie.vimix-cursors;
|
||||
name = "Vimix-cursors";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,7 +4,6 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./cursor
|
||||
./keyboard
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue