-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
49 lines (46 loc) · 1.4 KB
/
flake.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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
crane = {
url = "github:ipetkov/crane";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
rust-overlay.follows = "rust-overlay";
};
};
sui-flake = {
url = "github:yanganto/sui/flake-2024-11-21";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
rust-overlay.follows = "rust-overlay";
crane.follows = "crane";
};
};
};
nixConfig.extra-substituters = [
"https://nix-community.cachix.org"
"https://nix-cache.ant-lab.tw"
"https://cache.garnix.io"
];
nixConfig.extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"nix-cache.ant-lab.tw:zIdryBfFvXk6AyoaN8P5WWFELzDWOK7bQvIzl8nL5Y8="
];
nixConfig.connect-timeout = 1;
outputs = { self, nixpkgs, rust-overlay, flake-utils, sui-flake, ... }:
flake-utils.lib.eachDefaultSystem (system: {
devShells.default = sui-flake.devShells."${system}".slim;
}
);
}