diff --git a/hm-modules/shell/addition/default.nix b/hm-modules/shell/addition/default.nix index 52601ab..bb6bee8 100644 --- a/hm-modules/shell/addition/default.nix +++ b/hm-modules/shell/addition/default.nix @@ -4,5 +4,6 @@ imports = [ ./starship ./oxidise + ./tmux ]; } diff --git a/hm-modules/shell/addition/tmux/default.nix b/hm-modules/shell/addition/tmux/default.nix new file mode 100644 index 0000000..856158c --- /dev/null +++ b/hm-modules/shell/addition/tmux/default.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, username, ... }: + +with lib; + +let cfg = config.dov.shell.addition.tmux; +in { + options.dov.shell.addition.tmux.enable = mkEnableOption "tmux configuration"; + + config = mkIf cfg.enable { + programs.tmux = { + enable = cfg.enable; + shell = "${pkgs.nushell}/bin/nu"; # TODO there should be some way to get current shell of user to insert here + terminal = "tmux-256color"; + historyLimit = 100000; + plugins = with pkgs; + [ + tmuxPlugins.better-mouse-mode + ]; + extraConfig = '' + ''; + }; + }; +} diff --git a/machines/fujin/main/home.nix b/machines/fujin/main/home.nix index 60f123b..610b141 100644 --- a/machines/fujin/main/home.nix +++ b/machines/fujin/main/home.nix @@ -35,8 +35,11 @@ }; }; - addition.starship.enable = true; - addition.oxidise.enable = true; + addition = { + starship.enable = true; + oxidise.enable = true; + tmux.enable = true; + }; }; browser.zen.enable = true;