Files
publisher-dashboard/devenv.nix
2026-01-09 10:51:47 +08:00

33 lines
636 B
Nix

{ pkgs, ... }:
{
packages = with pkgs; [
nixfmt-rfc-style
biome
git
dbmate
ast-grep
];
dotenv.enable = true;
languages.javascript = {
enable = true;
bun.enable = true;
};
services.postgres = {
enable = true;
initialDatabases = [{ name = "reviq-dashboard"; }];
initialScript = ''
CREATE USER reviq WITH PASSWORD 'reviq' SUPERUSER;
GRANT ALL PRIVILEGES ON DATABASE "reviq-dashboard" TO reviq;
'';
};
processes = {
"dev-publisher-dashboard".exec = "bun run --cwd apps/publisher-dashboard dev";
"build-watch".exec = "bun run build:watch:packages";
};
}