Error when setting cursor pointer

I’m want to set cursor pointer with home manager but in configuration.nix:


home-manager.users.franco = {
 home.stateVersion = "25.05";
 home.pointerCursor = {

  gtk.enable = true;
  # Isn't an option for qt btw?
  x11.enable = true;
  name = "cz-Hickson-Black";
  size = 24;
  package = pkgs.runCommand "local-cursor" {} ''
  mkdir -p $out/share/icons
  ln -s ${/home/franco/.icons/cz-Hickson-Black} $out/share/icons/cz-Hickson-Black
  '';

};

};

That way worked one time but now I’m getting this error:

error:
       … while calling the 'head' builtin
         at /nix/store/d3zhyxzz8s7y6pc7pmhhh587i4h60a7n-nixos-25.11/nixos/lib/attrsets.nix:1696:13:
         1695|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1696|             head values
             |             ^
         1697|           else

       … while evaluating the attribute 'value'
         at /nix/store/d3zhyxzz8s7y6pc7pmhhh587i4h60a7n-nixos-25.11/nixos/lib/modules.nix:1118:7:
         1117|     // {
         1118|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1119|       inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/d3zhyxzz8s7y6pc7pmhhh587i4h60a7n-nixos-25.11/nixos/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `warnings':

       … while evaluating definitions from `/nix/store/d3zhyxzz8s7y6pc7pmhhh587i4h60a7n-nixos-25.11/nixos/nixos/modules/system/boot/systemd.nix':

       … while evaluating the option `systemd.services.home-manager-franco.serviceConfig':

       … while evaluating definitions from `/etc/nixos/configuration.nix':

       … while evaluating the option `home-manager.users.franco.home.activation.checkFilesChanged.data':

       … while evaluating de+finitions from `/nix/store/n6qqmv6g7p6i01bwh7qda4piqdm4n1r9-source/modules/files.nix':

       … while evaluating the option `home-manager.users.franco.home.file."/home/franco/.Xresources".onChange':

       … while evaluating definitions from `/nix/store/n6qqmv6g7p6i01bwh7qda4piqdm4n1r9-source/modules/xresources.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'xrdb' missing
       at /nix/store/n6qqmv6g7p6i01bwh7qda4piqdm4n1r9-source/modules/xresources.nix:34:29:
           33|
           34|   xrdbMerge = "${lib.getExe pkgs.xrdb} -merge ${cfg.path}";
             |                             ^
           35|
       Did you mean one of xrdp, cdb, cgdb, db or edb?
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 1.

I already tried installing xrdb in system packages but didn’t work. Setting the cursor in XCURSOR_THEME (Or something similar was named the env variable) doesn’t help.

Looks like your home-manager is newer than your nixpkgs, what channel/flake reference are you using?