2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-06 00:05:14 -04:00
|
|
|
|
|
|
|
let
|
2024-05-07 18:02:59 -04:00
|
|
|
cfg = config.host.apps.tmux;
|
2024-05-06 00:05:14 -04:00
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
2024-05-07 18:02:59 -04:00
|
|
|
options = {
|
|
|
|
host.apps.tmux.enable = mkEnableOption (mdDoc "Enables tmux - terminal multiplexer");
|
|
|
|
};
|
2024-05-06 00:05:14 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
|
|
|
newSession = true;
|
|
|
|
clock24 = true;
|
2024-06-11 12:24:27 -04:00
|
|
|
extraConfig = ''
|
|
|
|
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
|
|
|
'';
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|