-
Notifications
You must be signed in to change notification settings - Fork 50
/
devenv.nix
58 lines (49 loc) · 1.27 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
{ pkgs, lib, ... }:
{
# https://devenv.sh/packages/
packages = [
pkgs.curl
pkgs.git
pkgs.jq
pkgs.protobuf
pkgs.protobuf3_21
pkgs.nodejs_20
pkgs.xdot
pkgs.rustup
pkgs.wasm-pack
] ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk; [
frameworks.SystemConfiguration
frameworks.Security
frameworks.CoreFoundation
]);
# https://devenv.sh/scripts/
scripts.hello.exec = "echo Welcome to the Chidori dev enviroment";
scripts.run-ui.exec = "(cd toolchain/prompt-graph-ui && yarn run tauri dev)";
enterShell = ''
REPO_ROOT=`git rev-parse --show-toplevel`
hello
'';
# https://devenv.sh/languages/
languages.nix.enable = true;
languages.python = {
version = "3.12.0";
enable = true;
poetry.enable = true;
venv.enable = true;
};
languages.rust = {
enable = true;
channel = "nightly";
components = [ "rustc" "cargo" "clippy" "rustfmt" "rust-analyzer"];
};
# https://devenv.sh/pre-commit-hooks/
pre-commit.hooks.shellcheck.enable = true;
services.clickhouse = {
enable = true;
config = ''
http_port: 9000
listen_host: 127.0.0.1
'';
};
# See full reference at https://devenv.sh/reference/options/
}