From c2f0d9bebe68c11f4d018a18bd5d3880712c6873 Mon Sep 17 00:00:00 2001 From: schererleander Date: Tue, 29 Jul 2025 02:03:38 +0200 Subject: chore: move home-manager modules in seperate folder --- modules/home-manager/tmux.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/home-manager/tmux.nix (limited to 'modules/home-manager/tmux.nix') diff --git a/modules/home-manager/tmux.nix b/modules/home-manager/tmux.nix new file mode 100644 index 0000000..e109375 --- /dev/null +++ b/modules/home-manager/tmux.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: + +{ + options.tmux.enable = lib.mkEnableOption "Enable and configure Tmux"; + config = lib.mkIf config.tmux.enable { + programs.tmux = { + enable = true; + extraConfig = '' + unbind C-b + set-option -g prefix C-a + bind-key C-a send-prefix + + bind -n M-Left select-pane -L + bind -n M-Right select-pane -R + bind -n M-Up select-pane -U + bind -n M-Down select-pane -D + + set -g mouse on + ''; + }; + }; +} \ No newline at end of file -- cgit v1.3.1