aboutsummaryrefslogtreecommitdiffhomepage
path: root/home-manager
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-11-19 10:52:14 +0900
committernsfisis <nsfisis@gmail.com>2024-03-24 22:46:33 +0900
commit19fdbdddcd2dd0a43164dc50c0c0b840b2f8ae5c (patch)
treeba78ce810630ce6d23ba143e7ba9415185746c90 /home-manager
parentb5dfc713aadec9fdfc59a35cd1e512aa7428e123 (diff)
downloaddotfiles-19fdbdddcd2dd0a43164dc50c0c0b840b2f8ae5c.tar.gz
dotfiles-19fdbdddcd2dd0a43164dc50c0c0b840b2f8ae5c.tar.zst
dotfiles-19fdbdddcd2dd0a43164dc50c0c0b840b2f8ae5c.zip
home-manager: fill the gap between envs
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/config/tmux/tmux.conf1
-rw-r--r--home-manager/home.nix30
2 files changed, 22 insertions, 9 deletions
diff --git a/home-manager/config/tmux/tmux.conf b/home-manager/config/tmux/tmux.conf
index f6cfca8..b93f6d6 100644
--- a/home-manager/config/tmux/tmux.conf
+++ b/home-manager/config/tmux/tmux.conf
@@ -15,7 +15,6 @@ set-option -g focus-events on
# TERMINAL FEATURES {{{2
set-option -ga terminal-overrides ',tmux-256color:Tc'
-set-option -ga terminal-overrides ',alacritty:RGB'
# APPEARANCE {{{2
set-option -g status-justify left
diff --git a/home-manager/home.nix b/home-manager/home.nix
index 7da79e7..e01feea 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -4,6 +4,8 @@ let
homeDirectory = specialArgs.env.homeDirectory;
clipboardCopyCommand = specialArgs.env.gui.clipboard.copyCommand;
requiresWlClipboard = clipboardCopyCommand == "wl-copy";
+ terminalApp = specialArgs.env.gui.terminalApp;
+ useNixManagedZsh = specialArgs.env.useNixManagedZsh;
in
{
home.username = username;
@@ -91,7 +93,7 @@ in
aggressiveResize = true;
baseIndex = 1;
clock24 = true;
- escapeTime = 0;
+ escapeTime = 5;
historyLimit = 50000;
mouse = false;
prefix = "C-t";
@@ -100,14 +102,26 @@ in
extraConfig =
let
commonConfig = builtins.readFile ./config/tmux/tmux.conf;
- extraConfig = if clipboardCopyCommand != null then
- ''
- bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "${clipboardCopyCommand}"
- ''
- else
- "";
+ clipboardConfig = if clipboardCopyCommand != null then
+ ''
+ bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "${clipboardCopyCommand}"
+ ''
+ else
+ "";
+ terminalConfig = if terminalApp == "alacritty" then
+ ''
+ set-option -ga terminal-overrides ',alacritty:RGB'
+ ''
+ else
+ "";
+ shellConfig = if useNixManagedZsh then
+ ''
+ set-option -g default-shell ${homeDirectory}/.nix-profile/bin/zsh
+ ''
+ else
+ "";
in
- commonConfig + extraConfig;
+ commonConfig + clipboardConfig + terminalConfig + shellConfig;
};
programs.zsh = {