diff options
Diffstat (limited to '')
| -rw-r--r-- | home/desktop.nix | 13 | ||||
| -rw-r--r-- | pkgs/default.nix | 1 | ||||
| -rw-r--r-- | pkgs/tmux-pass.nix | 25 |
3 files changed, 39 insertions, 0 deletions
diff --git a/home/desktop.nix b/home/desktop.nix index 411b535..0d19de0 100644 --- a/home/desktop.nix +++ b/home/desktop.nix @@ -48,6 +48,19 @@ with lib; { terminal = "xterm-256color"; keyMode = "vi"; + plugins = [ + { + plugin = pkgs.local.tmux-pass; + extraConfig = '' + set -g @pass-key BSpace + set -g @pass-copy-to-clipboard on + set -g @pass-window-size 15 + set -g @pass-hide-pw-from-preview 'on' + set -g @pass-hide-preview on + ''; + } + ]; + extraConfig = '' set -g mouse on set -ga update-environment " LIFT_PID" diff --git a/pkgs/default.nix b/pkgs/default.nix index f220934..9fd6fd9 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -14,6 +14,7 @@ in scripts = callPackage ./scripts { }; simple-scalar = callPackage ./simple-scalar { }; tmux-lift = callPackage ./tmux-lift { }; + tmux-pass = callPackage ./tmux-pass.nix { }; st = prev.st.override { conf = import ./st.nix { }; diff --git a/pkgs/tmux-pass.nix b/pkgs/tmux-pass.nix new file mode 100644 index 0000000..608ad95 --- /dev/null +++ b/pkgs/tmux-pass.nix @@ -0,0 +1,25 @@ +{ fetchFromGitHub +, fzf +, pass +, tmuxPlugins +}: +tmuxPlugins.mkTmuxPlugin { + pluginName = "tmux-pass"; + version = "master"; + + src = fetchFromGitHub { + repo = "tmux-pass"; + owner = "rafi"; + + rev = "76b1c98911d56928063a41bc93a2d9e81818ef4c"; + sha256 = "102n4f5zcqijf5ywdahgmj0yhaibv0zgpvdq8wwkm8vbhvhb7abd"; + }; + + rtpFilePath = "plugin.tmux"; + + postInstall = '' + substituteInPlace $target/scripts/main.sh \ + --replace 'fzf \' '${fzf}/bin/fzf \' \ + --replace 'pass ' '${pass}/bin/pass ' + ''; +} |
