This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.tmux: add tmux tool with auto-cleanup

+32 -2
+1 -2
machines/barnacle/configuration.nix
··· 18 18 self.packages.${pkgs.system}.nvim 19 19 self.packages.${pkgs.system}.pass 20 20 self.packages.${pkgs.system}.passmenu 21 + self.packages.${pkgs.system}.tmux 21 22 22 23 # zsh dependencies 23 24 pkgs.fzf 24 25 pkgs.atuin 25 - 26 - pkgs.tmux 27 26 pkgs.gnupg 28 27 pkgs.pinentry_mac 29 28 pkgs.lazygit
+31
tools/tmux/flake-module.nix
··· 1 + { ... }: 2 + { 3 + perSystem = 4 + { pkgs, ... }: 5 + let 6 + tmuxConfigText = '' 7 + set-option -g default-terminal screen-256color 8 + 9 + # Auto-destroy sessions when no clients attached (handles terminal close) 10 + set -g destroy-unattached on 11 + ''; 12 + tmuxConfigFile = pkgs.writeText "tmux.conf" tmuxConfigText; 13 + in 14 + { 15 + packages.tmux = pkgs.symlinkJoin { 16 + name = "tmux"; 17 + paths = [ 18 + (pkgs.writeShellApplication { 19 + name = "tmux"; 20 + text = '' 21 + exec ${pkgs.tmux}/bin/tmux -f ${tmuxConfigFile} "$@" 22 + ''; 23 + }) 24 + pkgs.tmux 25 + ]; 26 + passthru = { 27 + tmuxConfig = tmuxConfigText; 28 + }; 29 + }; 30 + }; 31 + }