-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjury-config.example.nix
More file actions
40 lines (33 loc) · 948 Bytes
/
jury-config.example.nix
File metadata and controls
40 lines (33 loc) · 948 Bytes
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
{ boxIp, email, hostName, ... }@args:
{ pkgs, ... }:
let
callChecker = path: pkgs.python3.pkgs.callPackage path {
# If you want to, clone https://github.com/ugractf/ad-checklib and use it here.
# adchecklib = pkgs.python3.pkgs.callPackage ./ad-checklib { };
};
in {
imports = [ (import ./adhell-config.nix args) (import ./tollfree-config.nix args) ];
adLib.juryHost = {
enable = true;
hostName = hostName;
};
adLib.p2pTunnels.ipAddress = boxIp;
security.acme.email = email;
adLib.checksystem = {
name = "Example CTF";
times = [ { from = "2020-11-24 13:00:00"; to = "2020-11-24 17:30:00"; } ];
roundLength = 120;
flagLifeTime = 4;
services = {
service1 = {
path = callChecker ./example-checker.nix;
tcpPort = 9009;
timeout = 40;
};
service2 = {
path = callChecker ./other-example-checker.nix;
tcpPort = 8600;
};
};
};
}