-
Notifications
You must be signed in to change notification settings - Fork 2
/
devenv.nix
52 lines (43 loc) · 969 Bytes
/
devenv.nix
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
{ pkgs, lib, ... }: {
processes = {
main.exec = "make start";
};
packages = [
# OS-agnostic packages
pkgs.gnumake
pkgs.protobuf
pkgs.rustc
pkgs.cargo
pkgs.clang
pkgs.nodejs_21
] ++ lib.optionals pkgs.stdenv.isLinux [
# Packages only for Linux
pkgs.inotify-tools
] ++ lib.optionals pkgs.stdenv.isDarwin [
#Packages only for MacOS
];
languages = {
elixir = {
enable = true;
package = pkgs.beam.packages.erlangR26.elixir_1_16;
};
erlang = {
enable = true;
};
javascript = {
enable = true;
};
};
services = {
postgres = {
enable = true;
package = pkgs.postgresql_16;
port = 5432;
listen_addresses = "127.0.0.1";
initialScript = "CREATE USER postgres WITH PASSWORD 'postgres'; ALTER USER postgres WITH SUPERUSER;";
initialDatabases = [
{ name = "game_backend_prod"; }
];
};
};
}