Activation script print to stdout

I have this script in my home manager,

  home.activation = {
    doomEmacs = lib.hm.dag.entryAfter ["writeBoundary"] ''
      if [ ! -d "${config.xdg.configHome}/emacs" ]; then
        git clone --depth 1 https://github.com/hlissner/doom-emacs ${config.xdg.configHome}/emacs | tee > /dev/stdout
        ${config.xdg.configHome}/emacs/bin/doom install -y
      fi
    '';
  };

Is it possible to print the output when this runs. This will be a long running script (but it runs conditionally), I want to know if it’s running

I haven’t tried with home-manager but for my NixOS activation scripts, putting set -x at the beginning works.

Where do I put this set -x?

Try

  home.activation = {
    doomEmacs = lib.hm.dag.entryAfter ["writeBoundary"] ''
      set -x
      if [ ! -d "${config.xdg.configHome}/emacs" ]; then
        git clone --depth 1 https://github.com/hlissner/doom-emacs ${config.xdg.configHome}/emacs | tee > /dev/stdout
        ${config.xdg.configHome}/emacs/bin/doom install -y
      fi
    '';
  };```

I did not receive anything. The simplest I went was

  home.activation = {
    doomEmacs = lib.hm.dag.entryAfter ["writeBoundary"] ''
      set -x
      echo "running activation script ..."
    '';
  };

and received nothing