-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
68 lines (60 loc) · 1.44 KB
/
flake.nix
File metadata and controls
68 lines (60 loc) · 1.44 KB
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
67
68
{
inputs = {
near-validator.url = "github:Openmesh-Network/near-validator";
nixpkgs.follows = "near-validator/nixpkgs";
};
nixConfig = {
extra-substituters = [
"https://openmesh.cachix.org"
];
extra-trusted-public-keys = [
"openmesh.cachix.org-1:du4NDeMWxcX8T5GddfuD0s/Tosl3+6b+T2+CLKHgXvQ="
];
};
outputs =
{
self,
nixpkgs,
near-validator,
...
}:
let
system = "x86_64-linux";
in
{
nixosConfigurations.container = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit near-validator;
};
modules = [
(
{ near-validator, ... }:
{
imports = [
near-validator.nixosModules.default
];
boot.isContainer = true;
services.near-validator = {
enable = true;
pool = {
id = "openmesh";
version = "pool";
};
pinger.enable = true;
};
networking = {
firewall.allowedTCPPorts = [
3030
24567
];
useHostResolvConf = nixpkgs.lib.mkForce false;
};
services.resolved.enable = true;
system.stateVersion = "25.05";
}
)
];
};
};
}