set up ast-grep and dbmate and postgres
This commit is contained in:
11
devenv.nix
11
devenv.nix
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user