main
nix 44 lines 998 Bytes
Raw
1 { inputs, ... }:
2
3 {
4 imports = [
5 inputs.srvos.nixosModules.hardware-hetzner-cloud-arm
6 ../../modules/ofborg/evaluator.nix
7 ./hardware.nix
8 ];
9
10 # Bootloader.
11 boot.loader.systemd-boot.enable = true;
12
13 networking = {
14 hostName = "ofborg-eval01";
15 domain = "ofborg.org";
16 hostId = "007f0201";
17 };
18
19 disko.devices = import ./disko.nix;
20
21 systemd.network.networks."10-uplink" = {
22 matchConfig.MACAddress = "96:00:03:f4:25:ec";
23 address = [
24 "95.217.15.9/32"
25 "2a01:4f9:c012:cf00::1/64"
26 ];
27 routes = [
28 { Gateway = "fe80::1"; }
29 {
30 Gateway = "172.31.1.1";
31 GatewayOnLink = true;
32 }
33 ];
34 linkConfig.RequiredForOnline = "routable";
35 };
36
37 system.stateVersion = "24.11"; # Did you read the comment?
38
39 sops.secrets."ofborg/mass-rebuilder-rabbitmq-password" = {
40 owner = "ofborg-mass-rebuilder";
41 restartUnits = [ "ofborg-mass-rebuilder.service" ];
42 sopsFile = ../../secrets/ofborg.eval01.ofborg.org.yml;
43 };
44 }