1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 15:11:03 +01:00
home-manager/tests/modules/programs/smug/settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

63 lines
1.6 KiB
Nix

{
programs = {
smug = {
enable = true;
projects = {
blogdemo = {
root = "~/Developer/blog";
beforeStart = [
"docker-compose -f my-microservices/docker-compose.yml up -d" # my-microservices/docker-compose.yml is a relative to `root`-al
];
env = {
FOO = "bar";
};
stop = [ "docker stop $(docker ps -q)" ];
windows = [
{
name = "code";
root = "blog";
manual = true;
layout = "main-vertical";
commands = [ "docker-compose start" ];
panes = [
{
type = "horizontal";
root = ".";
commands = [
"docker-compose exec php /bin/sh"
"clear"
];
}
];
}
{
name = "infrastructure";
root = "~/Developer/blog/my-microservices";
layout = "tiled";
commands = [ "docker-compose start" ];
panes = [
{
type = "horizontal";
root = ".";
commands = [
"docker-compose up -d"
"docker-compose exec php /bin/sh"
"clear"
];
}
];
}
];
};
};
};
};
nmt.script = ''
assertFileContent home-files/.config/smug/blogdemo.yml ${./blogdemo.yml}
'';
}