Migrate Tmux config to Nix
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
htop
|
||||
ncdu
|
||||
ripgrep
|
||||
tmux
|
||||
nerd-fonts.fira-code
|
||||
roboto-mono
|
||||
];
|
||||
@@ -38,6 +37,7 @@
|
||||
./modules/tealdeer.nix
|
||||
./modules/work.nix
|
||||
./modules/dotfiles.nix
|
||||
./modules/tmux.nix
|
||||
];
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
@@ -6,7 +6,6 @@ let dotdir = "${config.home.homeDirectory}/.dotfiles";
|
||||
in
|
||||
{
|
||||
xdg.configFile = {
|
||||
"tmux/tmux.conf".source = ../../tmux.conf;
|
||||
"vim/vimrc".source = ../../vimrc;
|
||||
"ideavim/ideavimrc".source = ../../ideavimrc;
|
||||
# "doom".source = mkOutOfStoreSymlink "${dotdir}/doom";
|
||||
|
||||
34
nix/modules/tmux.nix
Normal file
34
nix/modules/tmux.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
mouse = true;
|
||||
shortcut = "s";
|
||||
baseIndex = 1;
|
||||
keyMode = "vi";
|
||||
customPaneNavigationAndResize = true;
|
||||
|
||||
plugins = with pkgs; [
|
||||
tmuxPlugins.sensible
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
# Splitting panes
|
||||
bind - split-window -v -c '#{pane_current_path}'
|
||||
bind \\ split-window -h -c '#{pane_current_path}'
|
||||
|
||||
# New window at current path
|
||||
bind c new-window -c '#{pane_current_path}'
|
||||
|
||||
# Break pane into new window
|
||||
bind b break-pane -d
|
||||
|
||||
# Status bar themeing
|
||||
set-option -g status-bg '#666666'
|
||||
set-option -g status-fg '#aaaaaa'
|
||||
|
||||
# Toggle mouse-mode
|
||||
bind m set-window-option mouse
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user