-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
67 lines (65 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
# https://github.com/ehllie/ez-configs/pull/15
# ez-configs.url = "github:ehllie/ez-configs";
ez-configs.url = "github:thecaralice/ez-configs/early-args";
ez-configs.inputs = {
flake-parts.follows = "flake-parts";
nixpkgs.follows = "nixpkgs";
};
crane.url = "github:ipetkov/crane";
flake-gha.url = "github:thecaralice/flake-gha";
flake-gha.inputs.flake-parts.follows = "flake-parts";
};
outputs =
inputs@{
self,
nixpkgs,
flake-parts,
ez-configs,
crane,
flake-gha,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.platforms.all;
imports = [
ez-configs.flakeModule
flake-gha.flakeModule
];
ezConfigs.root = ./.;
ezConfigs.earlyModuleArgs = {
inherit self;
inherit nixpkgs;
};
flake.lib = import ./lib { inherit nixpkgs; };
perSystem =
{
pkgs,
self',
...
}:
let
craneLib = crane.mkLib pkgs;
in
{
packages.default = self'.packages.cli;
packages.cli = pkgs.callPackage ./packages/cli.nix { inherit craneLib; };
packages.server = pkgs.callPackage ./packages/server { inherit craneLib; };
packages.frontends = pkgs.callPackage ./packages/frontends { };
};
githubActions = {
cachix.enable = true;
cachix.cacheName = "trieve";
cachix.pushFilter = "trieve-deps";
checkAllSystems = false;
};
};
nixConfig = {
extra-substituters = [ "https://trieve.cachix.org" ];
extra-trusted-public-keys = [ "trieve.cachix.org-1:eD5aNrNhvhSS/9jwGEUAuN7W4ifogVSDUk1XdjmrT+I=" ];
};
}