move cursor envvars to cursor module

This commit is contained in:
jacekpoz 2024-02-14 15:53:32 +01:00
parent a3db400a44
commit 10ae3b11c3
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 5 additions and 3 deletions

View file

@ -153,9 +153,6 @@
MOZ_ENABLE_WAYLAND = "1";
MOZ_DRM_DEVICE = "/dev/dri/card0";
XCURSOR_THEME = "Bibata-Modern-Classic";
XCURSOR_SIZE = "24";
XDG_DATA_HOME = "\$HOME/.local/share";
XDG_CONFIG_HOME = "\$HOME/.config";
XDG_STATE_HOME = "\$HOME/.local/state";

View file

@ -23,6 +23,11 @@ in {
};
config = mkIf cfg.enable {
environment.sessionVariables = {
XCURSOR_THEME = "${cfg.name}";
XCURSOR_SIZE = "${cfg.size}";
};
home-manager.users.${config'.username} = {
home.pointerCursor = {
inherit (cfg) package name size;