set up ast-grep and dbmate and postgres

This commit is contained in:
RevIQ
2026-01-08 21:51:47 -05:00
parent 82f39e0335
commit 322155b4a1
6 changed files with 19 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
nixfmt-rfc-style
biome
git
dbmate
ast-grep
];
dotenv.enable = true;
@@ -14,6 +16,15 @@
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";