added a bun profile for devenv

This commit is contained in:
2026-07-17 00:49:26 -05:00
parent 34a046fb9a
commit fac8a535de
2 changed files with 41 additions and 0 deletions
+33
View File
@@ -1,4 +1,5 @@
{
config,
pkgs,
...
}:
@@ -26,12 +27,44 @@
];
};
processes.server =
let
port = config.processes.server.ports.server.value;
in
{
ports.server.allocate = 8080;
exec = "PORT=${toString port} HOST=127.0.0.1 cargo watch -s' cargo run -p server'";
ready = {
http.get = {
port = port;
path = "/health";
host = "127.0.0.1";
scheme = "http";
};
initial_delay = 5;
period = 5;
probe_timeout = 3;
success_threshold = 1;
failure_threshold = 3;
};
};
dotenv.enable = true;
enterTest = ''
cargo test
'';
profiles.website.module = {
languages.javascript = {
enable = true;
bun = {
enable = true;
install.enable = true;
};
};
};
git-hooks.hooks = {
shellcheck.enable = true;
prettier.enable = true;