configure tmux with home manager and create common home
This commit is contained in:
parent
61daca6d73
commit
b3ddb68f2b
6 changed files with 45 additions and 7 deletions
|
@ -7,7 +7,7 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./zsh
|
||||
./common.nix
|
||||
];
|
||||
home = {
|
||||
username = "yt";
|
||||
|
|
6
nix/home/yt/common.nix
Normal file
6
nix/home/yt/common.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./tmux.nix
|
||||
./zsh
|
||||
];
|
||||
}
|
36
nix/home/yt/tmux.nix
Normal file
36
nix/home/yt/tmux.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
baseIndex = 1;
|
||||
historyLimit = 50000;
|
||||
keyMode = "emacs";
|
||||
mouse = false;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
yank
|
||||
tokyo-night-tmux
|
||||
{
|
||||
plugin = resurrect;
|
||||
extraConfig = "set -g @resurrect-capture-pane-contents 'on'";
|
||||
}
|
||||
{
|
||||
plugin = continuum;
|
||||
extraConfig = "set -g @continnum-restore 'on'";
|
||||
}
|
||||
];
|
||||
prefix = "C-f";
|
||||
sensibleOnTop = true;
|
||||
terminal = "tmux-256color";
|
||||
extraConfig = ''
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
bind u attach-session -c "#{pane_current_path}"
|
||||
bind v split-window -c "#{pane_current_path}" -h
|
||||
bind s split-window -c "#{pane_current_path}" -v
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -7,7 +7,7 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./zsh
|
||||
./common.nix
|
||||
];
|
||||
home = {
|
||||
username = "yt";
|
||||
|
@ -64,7 +64,6 @@
|
|||
aerc
|
||||
delta
|
||||
fzf
|
||||
zoxide
|
||||
eza
|
||||
fastfetch
|
||||
discord
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
programs.zsh = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{lib,config,pkgs, ...}: {
|
||||
{...}: {
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
|
|
Loading…
Add table
Reference in a new issue