From 4a3d2a8ddaf4e546df360656bc54b2947bdb890b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 3 Jan 2021 00:55:29 +0100 Subject: gkleen@sif: import --- user-profiles/tmux/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 user-profiles/tmux/default.nix (limited to 'user-profiles/tmux/default.nix') 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 @@ +{ 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; + }; + }; +} -- cgit v1.2.3