-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevenv.nix
More file actions
71 lines (62 loc) · 1.81 KB
/
Copy pathdevenv.nix
File metadata and controls
71 lines (62 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
pkgs,
lib,
config,
inputs,
...
}:
{
env = {
# Backend
FRONTEND_URI = "http://localhost:8000";
TOCOMO_API_BASE_URI = "http://localhost:8002";
ARCS_API_BASE_URI = "http://localhost:8003";
# Frontend
VITE_API_URL = "http://127.0.0.1:8001";
VITE_API_SCOPE = "api://456cc109-08d7-4c11-bf2e-a7b26660f99e/AcidWatch.User";
VITE_CLIENT_ID = "49385006-e775-4109-9635-2f1a2bdc8ea8";
VITE_TENANT_ID = "3aa4a235-b6e2-48d5-9195-7fcf05b459b0 ";
VITE_APPINSIGHTS_CONNECTIONSTRING = "";
VITE_BACKEND_CLIENT_ID = "456cc109-08d7-4c11-bf2e-a7b26660f99e";
VITE_BACKEND_CLIENT_SECRET = "";
VITE_OASIS_URL = "https://api-oasis-test.radix.equinor.com/";
};
languages.python = {
enable = true;
uv.enable = true;
uv.sync.enable = true;
venv.enable = true;
};
languages.javascript = {
enable = true;
npm.enable = true;
npm.install.enable = true;
directory = "frontend";
};
languages.java.enable = true;
packages = with pkgs; [
# Dependencies for jpype1, which is required by neqsim
ant
cmake
];
processes.backend.exec = "cd backend; uvicorn acidwatch_api.app:app --port 8001 --reload";
processes.frontend.exec = "cd frontend; npm run dev -- --port 8000";
profiles = {
pg.module =
{ config, ... }:
{
env.ACIDWATCH_DATABASE = "postgresql://${config.env.PGHOST}:${toString config.env.PGPORT}/acidwatch";
env.ACIDWATCH_TEST_DATABASE = "postgresql://${config.env.PGHOST}:${toString config.env.PGPORT}/acidwatch_test";
services.postgres.enable = true;
services.postgres.initialDatabases = [
{
name = "acidwatch";
}
{
name = "acidwatch_test";
}
];
services.postgres.listen_addresses = "localhost";
};
};
}