How to trace a dependency?

Hi there. I am working to downgrade from unstable to stable. When I change my input and rebuild, I am getting:

error:
       … while calling the 'seq' builtin
         at /nix/store/ylrrz211xgjzkcpyiafpq9y2yws7fyah-source/lib/modules.nix:322:18:
          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at /nix/store/ylrrz211xgjzkcpyiafpq9y2yws7fyah-source/lib/modules.nix:298:18:
          297|                     ''
          298|             else throw baseMsg
             |                  ^
          299|         else null;

       error: The option `programs.regreet.cursorTheme' does not exist. Definition values:
       - In `/nix/store/ipjrj83yw1hikadz0jd08ammz8i1hrss-modules/regreet/nixos.nix':
           {
             _type = "if";
             condition = false;
             content = {
               name = "Vanilla-DMZ";

But I am not using regreet anywhere in my config. I suspect something else was using it. At one point, I had stylix enabled, and I suspect that. But I have it disabled in my build now.

Suggestions?

the --show-trace nix option is a good first step to getting more information here. for example nixos-rebuild build --show-trace

Linked issue is still unfixed, and disabling != removing.

Thanks for that! Appreciate the link. I will go look there.

Yeah, I had looked at the output and it was pretty much identical.

error:
       … while calling the 'seq' builtin
         at /nix/store/ylrrz211xgjzkcpyiafpq9y2yws7fyah-source/lib/modules.nix:322:18:
          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at /nix/store/ylrrz211xgjzkcpyiafpq9y2yws7fyah-source/lib/modules.nix:298:18:
          297|                     ''
          298|             else throw baseMsg
             |                  ^
          299|         else null;

       error: The option `programs.regreet.cursorTheme' does not exist. Definition values:
       - In `/nix/store/ipjrj83yw1hikadz0jd08ammz8i1hrss-modules/regreet/nixos.nix':
           {
             _type = "if";
             condition = false;
             content = {
               name = "Vanilla-DMZ";
           ...

I think my use of “trace” was a bad idea considering there is --show-trace. What I was asking, was more how to figure out which module brought in the regreet component.

Although in my specific issue, Stylix has been identified.

Cheers.