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 package – tmux-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.
- What I have right now is a hard-coded path in the nix store.
- What I would like is the proper variable substitution for the result built in the nix store – something like
${pkgs.tmuxPlugins.pomodoro}
, but that doesn’t exist.
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.