Compare commits
No commits in common. "3a18c8a9209c607a8532600e4866dcd613899778" and "45c94a4aff0a180af0183de0af24bcbbdc1013f5" have entirely different histories.
3a18c8a920
...
45c94a4aff
7 changed files with 29 additions and 26 deletions
|
@ -46,9 +46,8 @@
|
|||
imports = [
|
||||
nur.hmModules.nur
|
||||
./modules/bash
|
||||
./modules/git.nix
|
||||
./modules/git
|
||||
./modules/neovim
|
||||
./modules/tmux.nix
|
||||
|
||||
./hostvars.nix
|
||||
({ osConfig, ... }: {
|
||||
|
|
|
@ -22,4 +22,28 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
# TODO: install plugins through nix
|
||||
tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
terminal = "screen-256color";
|
||||
newSession = true;
|
||||
historyLimit = 30000;
|
||||
extraConfig = ''
|
||||
bind-key -n Home send Escape "OH"
|
||||
bind-key -n End send Escape "OF"
|
||||
set -g mouse on
|
||||
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
|
||||
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
||||
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
|
||||
|
||||
set -g @plugin 'dracula/tmux'
|
||||
run 'bash -c "$HOME/.tmux/plugins/tpm/tpm ||
|
||||
${pkgs.git}/bin/git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm &&
|
||||
$HOME/.tmux/plugins/tpm/tpm"'
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
programs = {
|
||||
tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
terminal = "screen-256color";
|
||||
newSession = true;
|
||||
historyLimit = 30000;
|
||||
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
dracula
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
bind-key -n Home send Escape "OH"
|
||||
bind-key -n End send Escape "OF"
|
||||
set -g mouse on
|
||||
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
|
||||
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
||||
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
|
@ -28,6 +28,8 @@
|
|||
"libvirtd"
|
||||
];
|
||||
};
|
||||
|
||||
# TODO: use hm for tmux
|
||||
home-manager.users = {
|
||||
matt = {
|
||||
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
"libvirtd"
|
||||
];
|
||||
};
|
||||
|
||||
# TODO: use hm for tmux
|
||||
home-manager.users = {
|
||||
matt = {
|
||||
imports = [
|
||||
|
|
Loading…
Reference in a new issue