nix-config/home/modules/tmux.nix
2021-11-06 14:52:34 +01:00

24 lines
494 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.dadada.home.tmux;
in
{
options.dadada.home.tmux = {
enable = mkEnableOption "Enable tmux config";
};
config = mkIf cfg.enable {
programs.tmux = {
enable = true;
terminal = "xterm-256color";
extraConfig = ''
set -g automatic-rename on
setw -g mode-keys vi
set -g mouse on
set -g set-clipboard external
set -g set-titles on
set -g status on
'';
};
};
}