在 nixos 中,如何正确配置 tmux?

mhe*_*rzl 3 tmux nixos

在其他发行版中,我在文件中具有以下 tmux 配置~/.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
Run Code Online (Sandbox Code Playgroud)

这似乎也适用于 nixos,但我不确定这是否是正确的 nixos 方式。相比之下,我注意到了这个流行的 github tmux.nix 配置

我的方法是配置 tmux 的正确 nixos 方法吗?

我想知道使用我的.tmux.conf方法是否与 nixos 的一致性、可重复性、声明性等原则一致(或不一致)。

Emm*_*osa 5

NixOS 配置不包括用户配置,只包括系统范围的配置。您链接到的配置会生成/etc/tmux.conf,但不会生成~/.tmux.conf