home-profile: init tmux config

This commit is contained in:
Mateusz Słodkowicz 2024-04-05 23:02:26 +02:00
parent 575c698aa1
commit f4107f214a
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
3 changed files with 22 additions and 2 deletions

View File

@ -52,8 +52,7 @@ in
enableZshIntegration = lib.mkDefault config.programs.zsh.enable;
};
programs.tmux.enable = lib.mkDefault cfg.enableTerminal;
programs.tmux.clock24 = lib.mkDefault config.programs.tmux.enable;
programs.fzf = {
enable = lib.mkDefault cfg.enableTerminalExtra;

View File

@ -3,6 +3,7 @@
imports = [
./wezterm.nix
./tmux.nix
];
}

View File

@ -0,0 +1,20 @@
{ materusArg, config, lib, ... }:
let
cfg = config.materus.profile.tmux;
in
{
options.materus.profile.tmux.enable = materusArg.pkgs.lib.mkBoolOpt true "Enable materus tmux config";
config = lib.mkIf cfg.enable
{
programs.tmux = {
enable = true;
clock24 = lib.mkDefault true;
aggressiveResize = lib.mkDefault true;
escapeTime = lib.mkDefault 0;
historyLimit = lib.mkDefault 10000;
mouse = lib.mkDefault true;
terminal = lib.mkDefault "tmux-256color";
};
};
}