From f1bbcb2cd149f68dfb4591e0ca2b2b922822cfa7 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 11 Apr 2024 18:08:55 +0530 Subject: [PATCH] add tmux --- hosts/default/home.nix | 22 ------------------- modules/home-manager/default.nix | 2 ++ modules/home-manager/tmux/default.nix | 31 +++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 22 deletions(-) create mode 100644 modules/home-manager/tmux/default.nix diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 50654bd..59c8d92 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -106,28 +106,6 @@ "electron-25.9.0" ]; - programs.tmux = { - enable = true; - mouse = true; - plugins = with pkgs.tmuxPlugins; [ - better-mouse-mode - #dracula - #gruvbox - #nord - #onedark-theme - #power-theme - resurrect - #tmux-colors-solarized - tmux-fzf - ]; - extraConfig = '' - set-option -g mouse on - set -g default-terminal "screen-256color" - ''; - }; - - #programs.nixvim = import ./nixvim.nix pkgs; - programs.neovim = { enable = false; defaultEditor = true; diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index ee9aa6c..91d3d10 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -3,6 +3,7 @@ ./bash ./kitty ./session-vars + ./tmux ./zsh ]; @@ -10,5 +11,6 @@ bash.enable = lib.mkDefault true; kitty.enable = lib.mkDefault true; + tmux.enable = lib.mkDefault true; zsh.enable = lib.mkDefault true; } diff --git a/modules/home-manager/tmux/default.nix b/modules/home-manager/tmux/default.nix new file mode 100644 index 0000000..f5774ee --- /dev/null +++ b/modules/home-manager/tmux/default.nix @@ -0,0 +1,31 @@ +{ + config, + lib, + pkgs, + ... +}: { + options = { + tmux.enable = lib.mkEnableOption "enable tmux"; + }; + config = lib.mkIf config.tmux.enable { + programs.tmux = { + enable = true; + mouse = true; + plugins = with pkgs.tmuxPlugins; [ + better-mouse-mode + #dracula + #gruvbox + #nord + #onedark-theme + #power-theme + resurrect + #tmux-colors-solarized + tmux-fzf + ]; + extraConfig = '' + set-option -g mouse on + set -g default-terminal "screen-256color" + ''; + }; + }; +}