forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevenv.nix
More file actions
49 lines (43 loc) · 1.01 KB
/
Copy pathdevenv.nix
File metadata and controls
49 lines (43 loc) · 1.01 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
{
pkgs,
lib,
...
}:
{
packages = with pkgs; [
git
libyaml # required by psych
];
# this is required by the pg gem on linux
env = lib.mkIf (pkgs.stdenv.isLinux) {
LD_LIBRARY_PATH = lib.makeLibraryPath [
pkgs.krb5
pkgs.openldap
pkgs.libyaml # required by psych
];
};
services.postgres = {
enable = true;
listen_addresses = "localhost";
package = pkgs.postgresql_17; # this aligns with heroku
};
languages.ruby = {
enable = true;
versionFile = ./.ruby-version;
bundler.enable = true;
};
languages.javascript = {
enable = true;
yarn.enable = true;
yarn.install.enable = true;
};
# don't enable git-hooks on CI
# although this also disables being able to execute these checks with `devenv test`
# it's ok because hooks are broken in CI anyways.
#
# If we have a dev that can't use hooks on linux we should change this conditional
git-hooks.hooks = {
shellcheck.enable = true;
nixfmt-rfc-style.enable = true;
};
}