omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
556 stars 51 forks source link

Usage as a flake module? #29

Closed jtara1 closed 5 months ago

jtara1 commented 6 months ago

Has anyone used or tested this as a flake module?

Looks like there's some generic instructions probably autogenerated in https://github.com/omerxx/tmux-sessionx/blob/main/flake.nix#L11

        # To import a flake module
        # 1. Add foo to inputs
        # 2. Add foo as a parameter to the outputs function
        # 3. Add here: foo.flakeModule

Doesn't look like this works for me or tmux-sessionx.flakeModule is defined checking nix flake show github:omerxx/tmux-sessionx --no-write-lock-file

I have it setup to use as a tmux plugin with tmux-sessionx.packages.x86_64-linux.default, but I'm missing something still.

omerxx commented 5 months ago

The integration was create by @schromp who may be able to help

schromp commented 5 months ago

Whoops this documentation is a leftover from the flake-parts example and should be removed. My bad.

How to actually use:

  1. Adding inputs.tmux-sessionx.url = "github:omerxx/tmux-sessionx"; to your system flake
  2. Adding programs.tmux.plugins = [ inputs.tmux-sessionx.packages."x86_64-linux".default ]; into the home-manager or system configuration

Example from my config

I have noticed there are some dependencies missing. There is a pr that will fix them.

omerxx commented 5 months ago

Merged, please reopen if still relevant 🙏