Files
publisher-dashboard/devenv.nix
RevIQ aee22ae454 Update devenv and cleanup packages
- Add api-server process to devenv.nix
- Add dbmate and kysely-codegen scripts
- Configure PostgreSQL with localhost listener
- Update publisher-dashboard package to @apps/publisher-dashboard
- Fix deprecated asChild prop in mobile-nav component
- Remove unused publisher-utils package
- Update bun.lock with new dependencies

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 11:45:13 +08:00

42 lines
933 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;
'';
listen_addresses = "localhost";
};
processes = {
"dev-publisher-dashboard".exec = "bun run --cwd apps/publisher-dashboard dev";
"build-watch".exec = "bun run build:watch:packages";
"api-server".exec = "bun run --cwd apps/api-server dev";
};
scripts = {
"db-up".exec = "dbmate up";
"db-new".exec = "dbmate new \"$1\"";
"db-status".exec = "dbmate status";
"db-gen".exec = "bun run --cwd packages/db-schema generate";
};
}