-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.nix
66 lines (63 loc) · 1.69 KB
/
config.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
{ lib
, bootstrapNixpkgs
, defaultPackageStoreEnv
, staticDocs
, frontend
, templates
}:
lib.generators.toJSON {} {
port = 0;
mode = { tag = "raw_electron"; };
disable_auth = true;
disable_landing_page = true;
sandbox_store_providers = [{
name = "host-local";
display_name = "Host local sandbox store provider";
description = "Store provider on the Docker host";
provider = {
tag = "local";
path = "CODEDOWN_ROOT/local_sandboxes";
};
}];
package_store_configs = [{
name = "default";
display_name = "Default";
description = "Default package store config";
config = {
tag = "preexisting";
bootstrap_nixpkgs = bootstrapNixpkgs;
default_env = defaultPackageStoreEnv;
nix_path = "/nix";
store_path = "/nix/store";
gc_roots_dir = "CODEDOWN_ROOT/gc_roots";
read_only_binds = [
["/etc/hosts" "/etc/hosts"]
];
};
}];
runner_configs = [{
name = "default";
display_name = "Default runner";
description = "Local runner";
config = {
tag = "process";
# log_dir = "/tmp";
};
store = "default"; # Must be a key into the stores
}];
templates_dir = templates;
imports_root = "CODEDOWN_ROOT/imports";
database = { type = "sqlite"; path = "CODEDOWN_ROOT/db.sqlite"; };
email_from = "admin@codedown.io";
email_sender = { type = "null"; };
app_dir = "${frontend}";
static_docs_dir = staticDocs;
sandboxes_root = "CODEDOWN_ROOT/sandboxes";
package_stores_root = "CODEDOWN_ROOT/local_stores";
runners_root = "CODEDOWN_ROOT/local_runners";
session_token_signing_key = "";
startup_jobs = [
{ tag = "sync_templates"; }
{ tag = "prune_missing_runners"; }
];
}