diff --git a/stylix/hm/cursor.nix b/stylix/hm/cursor.nix index 4694482e..78f4050a 100644 --- a/stylix/hm/cursor.nix +++ b/stylix/hm/cursor.nix @@ -7,14 +7,14 @@ let in { imports = [ ../cursor.nix ]; - config = mkIf ((builtins.match ".*-linux" "${pkgs.system}") != null) { + config = mkIf pkgs.stdenv.hostPlatform.isLinux { home.pointerCursor = { - name = "${cfg.name}"; + name = cfg.name; package = cfg.package; size = cfg.size; x11 = { enable = true; - defaultCursor = "${cfg.name}"; + defaultCursor = cfg.name; }; gtk.enable = true; }; diff --git a/stylix/nixos/cursor.nix b/stylix/nixos/cursor.nix index a884685b..30022a1c 100644 --- a/stylix/nixos/cursor.nix +++ b/stylix/nixos/cursor.nix @@ -5,6 +5,6 @@ let in { imports = [ ../cursor.nix ]; config = { - environment.variables.XCURSOR_SIZE = "${toString cfg.size}"; + environment.variables.XCURSOR_SIZE = toString cfg.size; }; }