Proper way to get path for `run-shell` after using `mkTmuxPlugin`

I’m trying to add a tmux plugin to my home-manager configuration. It is for a plugin that is not available as a nix packagetmux-pomodoro-plus.

I’ve followed the pattern from this blog post using mkTmuxPackage, and it looks like the proper lines are added to the tmux.conf output, but the relevant block does not show up on the status bar.

I’ve posted a reduced[1] working example on GitHub here.

Some tmux plugins (e.g., battery) do not work properly unless you invoke run-shell on them again toward the end of tmux.conf, like in the example here on the NixOS wiki.

I’ll be happy to package the plugin and contribute it to nixpkgs once I get it working[2], but even when I do this seems like a gap in my understanding and worth learning how to do properly.

Any help/suggestions are welcome, especially if you can suggest search terms or point me toward the relevant section of documentation.


  1. This isn’t a minimal working example, but it is a reasonably small home-manager configuration. ↩︎

  2. Even with the extra run-shell on the hard-coded path, the pomodoro element doesn’t show up in my status bar. There may be another completely different issue to fix as well. ↩︎