share tmux too

This commit is contained in:
Sridhar Ratnakumar 2022-04-08 22:01:55 -04:00
parent 294ddc878c
commit 980ea429d3
4 changed files with 27 additions and 22 deletions

View file

@ -117,7 +117,10 @@
{
home-manager.extraSpecialArgs = { inherit system inputs; };
home-manager.users.srid = { pkgs, ... }: {
imports = [ ./home/neovim.nix ];
imports = [
./home/tmux.nix
./home/neovim.nix
];
home.stateVersion = "21.11";
};
}

View file

@ -1,6 +1,9 @@
{ pkgs, inputs, system, ... }:
rec {
imports = [ inputs.nix-doom-emacs.hmModule ];
imports = [
inputs.nix-doom-emacs.hmModule
./home/tmux.nix
];
home.packages = with pkgs; [
gnumake
@ -46,8 +49,6 @@ rec {
programs = {
git = import ./home/git.nix;
tmux = import ./home/tmux.nix;
# Leaving this disabled, as it doesn't look like nix-doom-emacs is being
# maintained or kept up to date anymore.
doom-emacs = {

View file

@ -1,20 +1,22 @@
{
enable = true;
shortcut = "a";
# aggressiveResize = true; -- Disabled to be iTerm-friendly
baseIndex = 1;
newSession = true;
# Stop tmux+escape craziness.
escapeTime = 0;
# Force tmux to use /tmp for sockets (WSL2 compat)
secureSocket = false;
programs.tmux = {
enable = true;
shortcut = "a";
# aggressiveResize = true; -- Disabled to be iTerm-friendly
baseIndex = 1;
newSession = true;
# Stop tmux+escape craziness.
escapeTime = 0;
# Force tmux to use /tmp for sockets (WSL2 compat)
secureSocket = false;
extraConfig = ''
# Mouse works as expected
set-option -g mouse on
# easy-to-remember split pane commands
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
'';
extraConfig = ''
# Mouse works as expected
set-option -g mouse on
# easy-to-remember split pane commands
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
'';
};
}

View file

@ -9,7 +9,6 @@
ripgrep
sd
tig
tmux
pass
pandoc
neovim-nightly