fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Mario Rodasprograms.tmux: use xdg config path (#1928)e00dd0d7

master
1.1 KiB51 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.tmux = {
8      aggressiveResize = true;
9      clock24 = true;
10      enable = true;
11      keyMode = "emacs";
12      newSession = true;
13      reverseSplit = true;
14
15      plugins = with pkgs.tmuxPlugins; [
16        logging
17        prefix-highlight
18        fzf-tmux-url
19      ];
20    };
21
22    nixpkgs.overlays = [
23      (self: super: {
24        tmuxPlugins = super.tmuxPlugins // {
25          fzf-tmux-url = super.tmuxPlugins.fzf-tmux-url // {
26            rtp = "@tmuxplugin_fzf_tmux_url_rtp@";
27          };
28
29          logging = super.tmuxPlugins.logging // {
30            rtp = "@tmuxplugin_logging_rtp@";
31          };
32
33          prefix-highlight = super.tmuxPlugins.prefix-highlight // {
34            rtp = "@tmuxplugin_prefix_highlight_rtp@";
35          };
36
37          sensible = super.tmuxPlugins.sensible // {
38            rtp = "@tmuxplugin_sensible_rtp@";
39          };
40        };
41      })
42    ];
43
44    nmt.script = ''
45      assertFileExists home-files/.config/tmux/tmux.conf
46      assertFileContent home-files/.config/tmux/tmux.conf ${
47        ./emacs-with-plugins.conf
48      }
49    '';
50  };
51}