configure tmux with home manager and create common home

This commit is contained in:
cy 2024-12-13 23:53:01 -05:00
parent 61daca6d73
commit b3ddb68f2b
6 changed files with 45 additions and 7 deletions

View file

@ -7,7 +7,7 @@
... ...
}: { }: {
imports = [ imports = [
./zsh ./common.nix
]; ];
home = { home = {
username = "yt"; username = "yt";

6
nix/home/yt/common.nix Normal file
View file

@ -0,0 +1,6 @@
{...}: {
imports = [
./tmux.nix
./zsh
];
}

36
nix/home/yt/tmux.nix Normal file
View 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
'';
};
}

View file

@ -7,7 +7,7 @@
... ...
}: { }: {
imports = [ imports = [
./zsh ./common.nix
]; ];
home = { home = {
username = "yt"; username = "yt";
@ -64,7 +64,6 @@
aerc aerc
delta delta
fzf fzf
zoxide
eza eza
fastfetch fastfetch
discord discord

View file

@ -1,7 +1,4 @@
{ {
config,
lib,
inputs,
... ...
}: { }: {
programs.zsh = { programs.zsh = {

View file

@ -1,4 +1,4 @@
{lib,config,pkgs, ...}: { {...}: {
nix = { nix = {
settings = { settings = {
experimental-features = "nix-command flakes"; experimental-features = "nix-command flakes";