From e75fc95b2764e1dd0aa529799f5eb50c09785aec Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 23 Jan 2026 10:21:31 +0100 Subject: [PATCH] feat: add 'tmux' to 'shell' module --- home/hosts/packages.nix | 2 -- home/modules/shell/default.nix | 1 + home/modules/tmux.nix | 25 +++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 home/modules/tmux.nix diff --git a/home/hosts/packages.nix b/home/hosts/packages.nix index bfc9ee6..ccf29bc 100644 --- a/home/hosts/packages.nix +++ b/home/hosts/packages.nix @@ -28,8 +28,6 @@ with pkgs; sops sshfs tldr - tmux - tmuxp tree unzip vimPlugins.vim-plug diff --git a/home/modules/shell/default.nix b/home/modules/shell/default.nix index 874a7f9..4973523 100644 --- a/home/modules/shell/default.nix +++ b/home/modules/shell/default.nix @@ -3,5 +3,6 @@ ./bash.nix ./utils.nix ./prompt.nix + ../tmux.nix ]; } diff --git a/home/modules/tmux.nix b/home/modules/tmux.nix new file mode 100644 index 0000000..7624f02 --- /dev/null +++ b/home/modules/tmux.nix @@ -0,0 +1,25 @@ +{ + pkgs, + dotsPath, + ... +}: +{ + config = { + home.packages = with pkgs; [ + tmux + tmuxp + reptyr + ]; + + home.file = { + ".config/tmux/tmux.conf".source = dotsPath + "/.config/tmux/tmux.conf"; + ".config/tmux/tmux.regular.conf".source = dotsPath + "/.config/tmux/tmux.regular.conf"; + ".config/tmux/themes/zenwritten_light.tmux".source = + dotsPath + "/.config/tmux/themes/zenwritten_light.tmux"; + ".config/tmux/themes/zenwritten_dark.tmux".source = + dotsPath + "/.config/tmux/themes/zenwritten_dark.tmux"; + ".config/tmux/hooks/tmux.ssh.conf".source = dotsPath + "/.config/tmux/hooks/tmux.ssh.conf"; + ".config/tmux/hooks/tmux.regular.conf".source = dotsPath + "/.config/tmux/hooks/tmux.regular.conf"; + }; + }; +}