mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-09 01:47:23 +08:00
share tmux too
This commit is contained in:
parent
294ddc878c
commit
980ea429d3
4 changed files with 27 additions and 22 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
7
home.nix
7
home.nix
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
ripgrep
|
||||
sd
|
||||
tig
|
||||
tmux
|
||||
pass
|
||||
pandoc
|
||||
neovim-nightly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue