diff options
Diffstat (limited to 'user-profiles/tmux/default.nix')
-rw-r--r-- | user-profiles/tmux/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/user-profiles/tmux/default.nix b/user-profiles/tmux/default.nix new file mode 100644 index 00000000..9e66cadd --- /dev/null +++ b/user-profiles/tmux/default.nix | |||
@@ -0,0 +1,26 @@ | |||
1 | { userName, pkgs, lib, ... }: | ||
2 | { | ||
3 | home-manager.users.${userName} = { | ||
4 | programs.tmux = { | ||
5 | enable = true; | ||
6 | clock24 = true; | ||
7 | historyLimit = 50000; | ||
8 | extraConfig = lib.readFile (pkgs.stdenv.mkDerivation { | ||
9 | name = "tmux.conf"; | ||
10 | src = ./tmux.conf; | ||
11 | |||
12 | buildInputs = with pkgs; [ makeWrapper ]; | ||
13 | |||
14 | phases = [ "installPhase" ]; | ||
15 | |||
16 | inherit (pkgs) zsh; | ||
17 | mandb = pkgs.man-db; | ||
18 | |||
19 | installPhase = '' | ||
20 | substituteAll $src $out | ||
21 | ''; | ||
22 | }); | ||
23 | tmuxp.enable = true; | ||
24 | }; | ||
25 | }; | ||
26 | } | ||