From 85dfcfdb7250965787b27ac0b58ab9bb2829016e Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Wed, 20 Nov 2024 16:48:27 -0600 Subject: [PATCH] fix terminal config --- .../apps/terminal/default.nix | 41 +++++++++---------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/home/platforms/fabian@posixlycorrect/apps/terminal/default.nix b/home/platforms/fabian@posixlycorrect/apps/terminal/default.nix index a32486d..57a7cc4 100644 --- a/home/platforms/fabian@posixlycorrect/apps/terminal/default.nix +++ b/home/platforms/fabian@posixlycorrect/apps/terminal/default.nix @@ -7,29 +7,26 @@ with lib; let cfg = config.local.apps.terminal; in { - options.local.apps.terminal.enable = mkEnableOption "Terminal emulator settings"; - config.programs = mkIf cfg.enable { - kitty = { - enable = true; - extraConfig = import ./kitty.conf.nix; - }; + kitty = { + enable = true; + extraConfig = import ./kitty.conf.nix; + }; - tmux = { - enable = true; - aggressiveResize = true; - clock24 = true; - escapeTime = 10; - terminal = "xterm-256color"; - keyMode = "emacs"; + tmux = { + enable = true; + aggressiveResize = true; + clock24 = true; + escapeTime = 10; + terminal = "xterm-256color"; + keyMode = "emacs"; - extraConfig = '' - set -g mouse on - set -ga update-environment " LIFT_PID" - set -g set-titles on - set -g renumber-windows on - set -sa terminal-overrides ',xterm-termite:RGB' - set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,} %H:%M %d-%b-%y" - ''; - }; + extraConfig = '' + set -g mouse on + set -ga update-environment " LIFT_PID" + set -g set-titles on + set -g renumber-windows on + set -sa terminal-overrides ',xterm-termite:RGB' + set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,} %H:%M %d-%b-%y" + ''; }; }