From da24f19a4725c08a05c80a130a2bd0417e66abb1 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 8 Aug 2024 20:09:09 -0700 Subject: [PATCH] tmux: style --- home/modules/tmux.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/modules/tmux.nix b/home/modules/tmux.nix index bffcffc..9b99b7f 100644 --- a/home/modules/tmux.nix +++ b/home/modules/tmux.nix @@ -1,6 +1,8 @@ { lib, config, pkgs, ... }: let + inherit (lib) getExe optionalString; + cfg = config.snowhawk.tmux; sessionizer = cfg.sessionizer; in @@ -12,7 +14,7 @@ in config = lib.mkIf cfg.enable { programs.tmux = { enable = true; - shell = "${pkgs.fish}/bin/fish"; + shell = getExe pkgs.fish; mouse = true; baseIndex = 1; terminal = "screen-256color"; @@ -37,8 +39,8 @@ in bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" - - ${lib.optionalString sessionizer.enable ''bind-key -r f run-shell "tmux neww ${lib.getExe sessionizer.pkg}"''} + '' + optionalString sessionizer.enable '' + bind-key -r f run-shell "tmux neww ${getExe sessionizer.pkg}" ''; };