mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 12:09:19 +00:00
Files with yaml file ending are recognized by `tmuxinator start` but not by `tmuxinator list`. Resolves #9031
41 lines
1.1 KiB
Nix
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}
|
|
'';
|
|
};
|
|
}
|