-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
60 lines (56 loc) · 1.98 KB
/
flake.nix
File metadata and controls
60 lines (56 loc) · 1.98 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
{
nixConfig = {
extra-substituters = "https://timewave.cachix.org";
extra-trusted-public-keys = ''
timewave.cachix.org-1:nu3Uqsm3sikI9xFK3Mt4AD4Q6z+j6eS9+kND1vtznq4=
'';
};
description = "A nix based factory for creating chains";
outputs = inputs @ {self, flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
imports = [
inputs.devshell.flakeModule
./flakeModules/default.nix
./flakeModules/ethereum-development/default.nix
./nixosModules/default.nix
./packages/default.nix
./tools/default.nix
./docs/default.nix
./templates/default.nix
./flakeModules/valence-contracts.nix
];
perSystem = {
pkgs,
inputs',
...
}: {
# Enable ethereum development environment
ethereum-development.enable = true;
ethereum-development.network = "sepolia";
};
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
cosmos-nix.url = "github:timewave-computer/cosmos.nix";
flake-parts.url = "github:hercules-ci/flake-parts";
crane.url = "github:ipetkov/crane";
rust-overlay.url = "github:oxalica/rust-overlay";
devshell.url = "github:numtide/devshell";
flake-parts-website.url = "github:hercules-ci/flake.parts-website";
# This is a flake but we just need the render module
# Theres a lot of inputs so it would pollute the lock file if its added as a flake
flake-parts-website.flake = false;
valence-contracts-v0_1_1.url = "github:timewave-computer/valence-protocol/v0.1.1";
valence-contracts-v0_1_1.flake = false;
valence-contracts-v0_1_2.url = "github:timewave-computer/valence-protocol/v0.1.2";
valence-contracts-v0_1_2.flake = false;
valence-contracts-main.url = "github:timewave-computer/valence-protocol";
valence-contracts-main.flake = false;
};
}