From 10ae3b11c3552f79d9d5065b179d079c8bf0346b Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Wed, 14 Feb 2024 15:53:32 +0100 Subject: [PATCH] move cursor envvars to cursor module --- hosts/niks/configuration.nix | 3 --- modules/gui/cursor.nix | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/niks/configuration.nix b/hosts/niks/configuration.nix index 792c702c..3202cf8c 100644 --- a/hosts/niks/configuration.nix +++ b/hosts/niks/configuration.nix @@ -152,9 +152,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"; diff --git a/modules/gui/cursor.nix b/modules/gui/cursor.nix index 4ed38ef0..554a042b 100644 --- a/modules/gui/cursor.nix +++ b/modules/gui/cursor.nix @@ -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;