summaryrefslogtreecommitdiff
path: root/user-profiles/tmux/default.nix
blob: 9e66cadd8ef9e9f6298c95c66583d6ddf402571f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ userName, pkgs, lib, ... }:
{
  home-manager.users.${userName} = {
    programs.tmux = {
      enable = true;
      clock24 = true;
      historyLimit = 50000;
      extraConfig = lib.readFile (pkgs.stdenv.mkDerivation {
        name = "tmux.conf";
        src = ./tmux.conf;

        buildInputs = with pkgs; [ makeWrapper ];

        phases = [ "installPhase" ];

        inherit (pkgs) zsh;
        mandb = pkgs.man-db;
        
        installPhase = ''
          substituteAll $src $out
        '';
      });
      tmuxp.enable = true;
    };
  };
}