home: setup x cursor module

This commit is contained in:
Antoine Martin 2021-04-21 18:53:21 +02:00
parent 28e08c817e
commit 36d8b273b7
3 changed files with 19 additions and 0 deletions

17
home/x/cursor.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.x.cursor;
in
{
options.my.home.x.cursor.enable = lib.mkEnableOption "X cursor";
config = lib.mkIf cfg.enable {
xsession.pointerCursor = {
package = pkgs.capitaine-cursors;
name = "capitaine-cursors";
# available sizes for capitaine-cursors are:
# 24, 30, 36, 48, 60, 72
size = 30;
};
};
}

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
{
imports = [
./cursor.nix
./i3.nix
./i3bar.nix
];

View file

@ -3,6 +3,7 @@
home-manager.users.alarsyo = {
# Keyboard settings & i3 settings
my.home.x.enable = true;
my.home.x.cursor.enable = true;
my.home.emacs.enable = true;
my.home.tmux.enable = true;
my.theme = config.home-manager.users.alarsyo.my.themes.solarizedLight;