-
Notifications
You must be signed in to change notification settings - Fork 8
/
default.nix
127 lines (125 loc) · 3.51 KB
/
default.nix
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
config,
inputs,
self,
...
}:
{
imports = [
./render.nix
];
renderDocs = {
enable = true;
name = "cardano-nix-docs";
mkdocsYamlFile = ./mkdocs.yml;
sidebarOptions = [
{
anchor = "cardano";
modules = [ config.flake.nixosModules.cardano ];
namespaces = [ "cardano" ];
}
{
anchor = "cardano.cli";
modules = [ config.flake.nixosModules.cli ];
namespaces = [ "cardano.cli" ];
}
{
anchor = "cardano.node";
modules = [ config.flake.nixosModules.node ];
namespaces = [ "cardano.node" ];
}
{
anchor = "services.cardano-node";
modules = [
config.flake.nixosModules.node
{ services.cardano-node.environment = "mainnet"; }
];
namespaces = [ "services.cardano-node" ];
}
{
anchor = "cardano.ogmios";
modules = [ config.flake.nixosModules.ogmios ];
namespaces = [ "cardano.ogmios" ];
}
{
anchor = "services.ogmios";
modules = [ config.flake.nixosModules.ogmios ];
namespaces = [ "services.ogmios" ];
}
{
anchor = "cardano.kupo";
modules = [ config.flake.nixosModules.kupo ];
namespaces = [ "cardano.kupo" ];
}
{
anchor = "services.kupo";
modules = [ config.flake.nixosModules.kupo ];
namespaces = [ "services.kupo" ];
}
{
anchor = "cardano.db-sync";
modules = [ config.flake.nixosModules.db-sync ];
namespaces = [ "cardano.db-sync" ];
}
{
anchor = "services.cardano-db-sync";
modules = [ (config.flake.nixosModules.db-sync // { config.services.cardano-db-sync.cluster = "mainnet"; }) ];
namespaces = [ "services.cardano-db-sync" ];
}
{
anchor = "cardano.blockfrost";
modules = [ config.flake.nixosModules.blockfrost ];
namespaces = [ "cardano.blockfrost" ];
}
{
anchor = "services.blockfrost";
modules = [ config.flake.nixosModules.blockfrost ];
namespaces = [ "services.blockfrost" ];
}
{
anchor = "cardano.oura";
modules = [ config.flake.nixosModules.oura ];
namespaces = [ "cardano.oura" ];
}
{
anchor = "services.oura";
modules = [ config.flake.nixosModules.oura ];
namespaces = [ "services.oura" ];
}
{
anchor = "cardano.http";
modules = [ config.flake.nixosModules.http ];
namespaces = [ "cardano.http" ];
}
{
anchor = "services.http-proxy";
modules = [ config.flake.nixosModules.http ];
namespaces = [ "services.http-proxy" ];
}
{
anchor = "cardano.monitoring";
modules = [ config.flake.nixosModules.default ];
namespaces = [ "cardano.monitoring" ];
}
];
# Replace `/nix/store` related paths with public urls
fixups = [
{
storePath = self.outPath;
githubUrl = "https://github.com/mlabs-haskell/cardano.nix/tree/main";
}
{
storePath = inputs.cardano-node.outPath;
githubUrl = "https://github.com/IntersectMBO/cardano-node/tree/master";
}
{
storePath = inputs.cardano-db-sync.outPath;
githubUrl = "https://github.com/IntersectMBO/cardano-db-sync/tree/master";
}
{
storePath = inputs.blockfrost.outPath;
githubUrl = "https://github.com/blockfrost/blockfrost-backend-ryo/tree/master";
}
];
};
}