Tmux does not use the tmux config at the default location
running tmux
ignores the config file entirely
running ~ tmux -f .config/tmux/tmux.conf
works and uses the tmux config generated by nix
here is tmux.nix, which is included as a module in homemanager. there are no other references to tmux anywhere
{ pkgs, ... }:
{
programs.tmux = {
enable = true;
extraConfig = ''
set -g status-fg white
set -g status-bg black
# C-b is not acceptable -- Emacs uses it
set-option -g prefix C-q
'';
};
}
is is included in home.nix as a module here:
{ config, pkgs, ... }:
{
# TODO please change the username & home directory to your own
home.username = "arthur";
home.homeDirectory = "/home/arthur";
imports = [
./tmux.nix
]
...
the config is in the correct location and links to the generated config
โ ~ ls -l ~/.config/tmux/tmux.conf
lrwxrwxrwx 1 arthur users 85 Mar 29 11:30 /home/arthur/.config/tmux/tmux.conf -> /nix/store/2yhk2skcqpgmvb7ss41gdqdlp5gi5449-home-manager-files/.config/tmux/tmux.conf
What am I doing wrong?