bundle modules
This commit is contained in:
@@ -25,14 +25,11 @@
|
|||||||
{
|
{
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
editor = modules/editor.nix;
|
editor = modules/editor.nix;
|
||||||
zsh = modules/zsh.nix;
|
|
||||||
git = modules/git.nix;
|
git = modules/git.nix;
|
||||||
udiskie = modules/udiskie.nix;
|
udiskie = modules/udiskie.nix;
|
||||||
niri = modules/niri.nix;
|
desktop = modules/desktop.nix;
|
||||||
bash = modules/bash.nix;
|
|
||||||
nix = modules/nix.nix;
|
nix = modules/nix.nix;
|
||||||
|
shell = modules/shell;
|
||||||
tools = modules/tools.nix;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
|
|||||||
8
modules/shell/default.nix
Normal file
8
modules/shell/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./tools.nix
|
||||||
|
./bash.nix
|
||||||
|
./zsh.nix
|
||||||
|
./tmux.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
38
modules/shell/tmux.nix
Normal file
38
modules/shell/tmux.nix
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
keyMode = "vi";
|
||||||
|
clock24 = true;
|
||||||
|
terminal = "screen-256color";
|
||||||
|
baseIndex = 1;
|
||||||
|
aggressiveResize = true;
|
||||||
|
escapeTime = 50;
|
||||||
|
historyLimit = 7000;
|
||||||
|
shortcut = "b";
|
||||||
|
extraConfig = ''
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
unbind *
|
||||||
|
bind * list-clients
|
||||||
|
|
||||||
|
# naVIgate
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
# Use C-h and C-l to cycle through panes
|
||||||
|
bind -r C-h select-window -t :-
|
||||||
|
bind -r C-l select-window -t :+
|
||||||
|
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
|
||||||
|
set -g status-interval 2
|
||||||
|
set -g status-left-length 32
|
||||||
|
set -g status-right-length 150
|
||||||
|
|
||||||
|
set -g status-position bottom
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -134,41 +134,4 @@ in
|
|||||||
uj = "${pkgs.systemd}/bin/journalctl --user";
|
uj = "${pkgs.systemd}/bin/journalctl --user";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
programs.tmux = {
|
|
||||||
enable = true;
|
|
||||||
keyMode = "vi";
|
|
||||||
clock24 = true;
|
|
||||||
terminal = "screen-256color";
|
|
||||||
baseIndex = 1;
|
|
||||||
aggressiveResize = true;
|
|
||||||
escapeTime = 50;
|
|
||||||
historyLimit = 7000;
|
|
||||||
shortcut = "b";
|
|
||||||
extraConfig = ''
|
|
||||||
set -g mouse on
|
|
||||||
|
|
||||||
unbind *
|
|
||||||
bind * list-clients
|
|
||||||
|
|
||||||
# naVIgate
|
|
||||||
bind h select-pane -L
|
|
||||||
bind j select-pane -D
|
|
||||||
bind k select-pane -U
|
|
||||||
bind l select-pane -R
|
|
||||||
|
|
||||||
# Use C-h and C-l to cycle through panes
|
|
||||||
bind -r C-h select-window -t :-
|
|
||||||
bind -r C-l select-window -t :+
|
|
||||||
|
|
||||||
setw -g monitor-activity on
|
|
||||||
set -g visual-activity on
|
|
||||||
|
|
||||||
set -g status-interval 2
|
|
||||||
set -g status-left-length 32
|
|
||||||
set -g status-right-length 150
|
|
||||||
|
|
||||||
set -g status-position bottom
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user