Skip to content

Commit 3693fd4

Browse files
committed
wip
1 parent 8668bed commit 3693fd4

File tree

7 files changed

+52
-2
lines changed

7 files changed

+52
-2
lines changed

checks/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
imports = [
44
./packages-ci-matrix.nix
55
./pre-commit.nix
6+
./vm-tests.nix
67
];
78
}

checks/vm-tests.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
inputs,
4+
self,
5+
...
6+
}:
7+
{
8+
perSystem =
9+
{
10+
inputs',
11+
self',
12+
pkgs,
13+
...
14+
}:
15+
{
16+
checks = {
17+
"healthcheck-test-01" = pkgs.testers.runNixOSTest {
18+
name = "healthcheck-test-01";
19+
nodes = {
20+
machine =
21+
{ config, pkgs, ... }:
22+
{
23+
24+
imports = [
25+
self.modules.nixos.machine_healthcheck
26+
];
27+
28+
};
29+
testScript =
30+
{ nodes, ... }:
31+
''
32+
machine.wait_for_unit("default.target")
33+
'';
34+
};
35+
};
36+
};
37+
};
38+
}

machines/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@ in
1919
flake.nixosConfigurations = (
2020
lib.mergeAttrsList (lib.map (x: mkMachine x) (builtins.attrNames (builtins.readDir ./modules)))
2121
);
22+
flake.modules.nixos = (
23+
lib.mergeAttrsList (
24+
lib.map (x: {
25+
"machine_${lib.removeSuffix ".nix" x}" = (import (./modules + "/${x}"));
26+
}) (builtins.attrNames (builtins.readDir ./modules))
27+
)
28+
);
2229
}

machines/modules/healthcheck.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
path = with pkgs; [
1111
];
1212
serviceConfig = {
13-
Type = "oneshot";
13+
Type = "simple";
1414
Restart = "on-failure";
1515
RestartSec = "10s";
1616

machines/modules/lido-keys-api.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
db-port = 5432;
2020
db-host = "127.0.0.1";
2121
db-user = "postgres";
22-
db-password = ../blankpass.txt;
22+
db-password = "";
2323
provider-json-rpc-max-batch-size = 100;
2424
provider-concurrent-requests = 5;
2525
provider-batch-aggregation-wait-ms = 10;

machines/modules/lido-validator-ejector.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
enable = true;
99
args = {
1010
messages-location = config.services.lido-withdrawals-automation.args.output-folder;
11+
consensus-node = "";
12+
execution-node = "";
13+
locator-address = "";
1114
blocks-preload = 100000;
1215
http-port = 8989;
1316
run-metrics = true;

machines/modules/lido-withdrawals-automation.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
services.lido-withdrawals-automation = {
88
enable = true;
99
args = {
10+
operator-id = "";
1011
password = "";
1112
percentage = 10;
1213
output-folder = "/ethereum/lido/withdrawal-automation";

0 commit comments

Comments
 (0)