-
Notifications
You must be signed in to change notification settings - Fork 0
/
devenv.nix
64 lines (53 loc) · 1.15 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
{ pkgs, lib, config, inputs, ... }:
{
packages = [
pkgs.unixtools.script
pkgs.pv
pkgs.entr
pkgs.gdal
pkgs.git
pkgs.jq
];
scripts.hello.exec = ''
echo "welcome to mctrot tools"
'';
languages.javascript = {
enable = true;
npm = {
enable = true;
install.enable = true;
};
};
languages.python = {
enable = true;
uv.enable = true;
};
enterShell = ''
hello
git --version
'';
# https://devenv.sh/tests/
enterTest = ''
echo "Running tests"
git --version | grep "2.42.0"
'';
# https://devenv.sh/services/
services.postgres = {
enable = true;
package = pkgs.postgresql_16;
initialDatabases = [{ name = "mctrot"; }];
extensions = extensions: [
extensions.postgis
extensions.timescaledb
];
listen_addresses = "127.0.0.1";
port = 5432;
};
# https://devenv.sh/languages/
# languages.nix.enable = true;
# https://devenv.sh/pre-commit-hooks/
# pre-commit.hooks.shellcheck.enable = true;
# https://devenv.sh/processes/
# processes.ping.exec = "ping example.com";
# See full reference at https://devenv.sh/reference/options/
}