Files
home-manager/tests/modules/programs/tmux/tmuxinator-projects.nix
Benedikt Ritter 9cc761169a tmuxinator: use yml file ending
Files with yaml file ending are recognized by `tmuxinator start` but not
by `tmuxinator list`.

Resolves #9031
2026-04-07 13:40:48 -05:00

41 lines
1.1 KiB
Nix

{
config = {
programs.tmux = {
enable = true;
tmuxinator = {
enable = true;
projects = {
myproject = {
name = "myproject";
root = "~/code/myproject";
windows = [
{
editor = {
layout = "main-vertical";
panes = [
{ editor = [ "vim" ]; }
"guard"
];
};
}
{ server = "bundle exec rails s"; }
{ logs = "tail -f log/development.log"; }
];
};
my-second-project = {
name = "my-second-project";
root = "~/code/my-second-project";
};
};
};
};
nmt.script = ''
assertFileExists home-files/.config/tmuxinator/myproject.yml
assertFileContent home-files/.config/tmuxinator/myproject.yml ${./tmuxinator-projects-1.yml}
assertFileExists home-files/.config/tmuxinator/my-second-project.yml
assertFileContent home-files/.config/tmuxinator/my-second-project.yml ${./tmuxinator-projects-2.yml}
'';
};
}