-
Notifications
You must be signed in to change notification settings - Fork 0
/
devenv.nix
79 lines (73 loc) · 1.39 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{ config, pkgs, ... }:
{
env = {
LD_LIBRARY_PATH = "${config.devenv.profile}/lib";
NIX_HARDENING_ENABLE = "";
OVERMIND_PROCFILE="${config.procfile}";
};
enterShell = ''
export C_INCLUDE_PATH="$C_INCLUDE_PATH:${pkgs.libxml2.dev}/include/libxml2"
'';
services = {
postgres = {
enable = true;
initialDatabases = [
{ name = "activerecord_unittest";}
{ name = "activerecord_unittest2";}
];
};
mysql = {
enable = true;
settings = {
mysqld = {
default-time-zone = "+00:00";
};
};
initialDatabases = [
{ name = "activerecord_unittest";}
{ name = "activerecord_unittest2";}
];
ensureUsers = [
{
name = "rails";
password = "";
ensurePermissions = {
"*.*" = "ALL PRIVILEGES";
};
}
];
};
redis.enable = true;
memcached.enable = true;
};
packages = with pkgs; [
docker-compose
docker
git
glib
openssl
libyaml
libxml2
redis
sqlite
yarn
nodejs
libmysqlclient
imagemagick
memcached
ffmpeg
mupdf
poppler
poppler_utils
vips
overmind
ctags
readline
chromedriver
chromium
# Required by stable branches
ncurses
];
languages.ruby.enable = true;
languages.ruby.versionFile = ./.ruby-version;
}