2

In other distributons, I had the following tmux configuration in a file ~/.tmux.conf.

# open new windows and panes in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"

# do not wait for escape characters
set -s escape-time 0

This seems to work on nixos as well, but I am not sure whether this is the proper nixos way. By contrast, I noticed this popular github tmux.nix configuration.

Is my method a proper nixos way to configure tmux?

I'm wondering if using my .tmux.conf approach is consistent (or not) with nixos's principles of consistency, reproducability, declarativeness, etc.

closed as primarily opinion-based by jasonwryan, Stephen Rauch, Anthon, Romeo Ninov, ilkkachu Jul 13 '17 at 9:05

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

5

The NixOS configuration does not include user configuration, only system-wide configuration. The configuration you linked to generates /etc/tmux.conf, but not ~/.tmux.conf.

  • Okay great I will keep my ~/.tmux then as my user-specific configuration. – mherzl Jul 13 '17 at 2:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.