main
nix 55 lines 1.24 KB
Raw
1 { inputs, ... }:
2
3 {
4 imports = [
5 inputs.srvos.nixosModules.hardware-hetzner-cloud
6 ../../modules/ofborg/common.nix
7 ../../modules/ofborg/github-tokens.nix
8 ./nginx.nix
9 ./rabbitmq.nix
10 # ofborg.org landingpage
11 # ./website.nix
12 # Accepts webhooks from GitHub
13 ./github-webhook-receiver.nix
14 # Checks wheter a PR event is interesting to us
15 ./evaluation-filter.nix
16 # Handles incoming comments
17 ./github-comment-filter.nix
18 # Receives logs from builders
19 ./log-message-collector.nix
20 # Posts to GitHub
21 ./github-comment-poster.nix
22 # LogApi and LogViewer
23 ./log-viewer.nix
24 ];
25 # TODO backups
26
27 # Bootloader.
28 boot.loader.grub.enable = true;
29
30 networking = {
31 hostName = "ofborg-core01";
32 domain = "ofborg.org";
33 hostId = "007f0101";
34 };
35
36 disko.devices = import ./disko.nix;
37
38 systemd.network.networks."10-uplink" = {
39 matchConfig.MACAddress = "96:00:03:ea:fa:62";
40 address = [
41 "138.199.148.47/32"
42 "2a01:4f8:c012:cda4::1/64"
43 ];
44 routes = [
45 { Gateway = "fe80::1"; }
46 {
47 Gateway = "172.31.1.1";
48 GatewayOnLink = true;
49 }
50 ];
51 linkConfig.RequiredForOnline = "routable";
52 };
53
54 system.stateVersion = "24.11"; # Did you read the comment?
55 }