From f4107f214a3ada69afd20ea7adc2c7467bba5a39 Mon Sep 17 00:00:00 2001 From: materus Date: Fri, 5 Apr 2024 23:02:26 +0200 Subject: [PATCH] home-profile: init tmux config --- configurations/profile/home/default.nix | 3 +-- .../profile/home/terminal/default.nix | 1 + configurations/profile/home/terminal/tmux.nix | 20 +++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 configurations/profile/home/terminal/tmux.nix diff --git a/configurations/profile/home/default.nix b/configurations/profile/home/default.nix index 1c533d2..fdbb360 100644 --- a/configurations/profile/home/default.nix +++ b/configurations/profile/home/default.nix @@ -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; diff --git a/configurations/profile/home/terminal/default.nix b/configurations/profile/home/terminal/default.nix index 726eb33..a947ba7 100644 --- a/configurations/profile/home/terminal/default.nix +++ b/configurations/profile/home/terminal/default.nix @@ -3,6 +3,7 @@ imports = [ ./wezterm.nix + ./tmux.nix ]; } diff --git a/configurations/profile/home/terminal/tmux.nix b/configurations/profile/home/terminal/tmux.nix new file mode 100644 index 0000000..dd28f20 --- /dev/null +++ b/configurations/profile/home/terminal/tmux.nix @@ -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"; + }; + + }; +}