commit e8772e594adfd527c9969404a77b27724094c22b parent b7fcb3d54fe0d22b42efab9bad7bdaf124003a64 Author: Vincent Demeester <vincent@sbr.pm> Date: Thu, 14 May 2020 18:34:57 +0200 profiles.tmux: remove tmux plugins Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | modules/profiles/tmux.nix | | | 23 | +++++++---------------- |
1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a/modules/profiles/tmux.nix b/modules/profiles/tmux.nix @@ -15,22 +15,13 @@ in }; }; config = mkIf cfg.enable { - home.packages = with pkgs; [ - tmux - ]; - home.file.".tmux.conf".text = '' - source-file ${config.xdg.configHome}/tmux/tmux.conf - set-environment -g TMUX_PLUGIN_MANAGER_PATH '${config.xdg.configHome}/tmux/plugins' - - set -g @plugin 'tmux-plugins/tpm' - set -g @plugin 'tmux-plugins/tmux-resurrect' - set -g @plugin 'tmux-plugins/tmux-continuum' - set -g @plugin 'tmux-plugins/tmux-copycat' - - set -g @continuum-restore 'on' - - run '${pkgs.tmux-tpm}/tpm' - ''; + programs.tmux = { + enable = true; + extraConfig = '' + source-file ${config.xdg.configHome}/tmux/commons/keybindings + source-file ${config.xdg.configHome}/tmux/tmux.conf + ''; + }; xdg.configFile."tmux/tmux.conf".source = ./assets/tmux/tmux.conf; xdg.configFile."tmux/commons/keybindings".source = ./assets/tmux/keybindings; };