|
1 | 1 | { |
2 | 2 | description = "Flake containing Bitte clusters"; |
3 | | - inputs.std.url = "github:divnix/std"; |
4 | | - # 21.11 doesn't yet fullfill all contracts that std consumes |
5 | | - # inputs.std.inputs.nixpkgs.follows = "nixpkgs"; |
6 | | - inputs.n2c.url = "github:nlewo/nix2container"; |
7 | | - inputs.data-merge.url = "github:divnix/data-merge"; |
8 | | - inputs.capsules.url = "github:input-output-hk/devshell-capsules"; |
9 | | - inputs = { |
10 | | - nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11"; |
11 | | - nixpkgs-docker.url = "github:nixos/nixpkgs/ff691ed9ba21528c1b4e034f36a04027e4522c58"; |
12 | | - nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; |
13 | | - |
14 | | - nix.url = "github:nixos/nix/2.8.1"; |
15 | | - agenix.url = "github:ryantm/agenix"; |
16 | | - agenix-cli.url = "github:cole-h/agenix-cli"; |
17 | | - ragenix.url = "github:yaxitech/ragenix"; |
18 | | - deploy.url = "github:input-output-hk/deploy-rs"; |
19 | | - |
20 | | - terranix.url = "github:terranix/terranix"; |
21 | | - terranix.inputs.nixpkgs.follows = "blank"; |
22 | | - |
23 | | - utils.url = "github:numtide/flake-utils"; |
24 | | - blank.url = "github:divnix/blank"; |
25 | | - |
26 | | - nomad-driver-nix.url = "github:input-output-hk/nomad-driver-nix"; |
27 | 3 |
|
28 | | - # Vector >= 0.20.0 versions require nomad-follower watch-config format fix |
29 | | - nomad-follower.url = "github:input-output-hk/nomad-follower"; |
30 | | - |
31 | | - fenix = { |
32 | | - url = "github:nix-community/fenix"; |
33 | | - inputs.nixpkgs.follows = "nixpkgs-unstable"; |
34 | | - }; |
| 4 | + # --- Public Inputs -------- |
| 5 | + # intended to defer locking to the consumer |
| 6 | + inputs = { |
| 7 | + nixpkgs.url = "nixos-21_11"; |
| 8 | + nixpkgs-unstable.url = "nixpkgs-unstable"; |
| 9 | + nix.url = "nix-2_10"; |
35 | 10 |
|
36 | 11 | ops-lib = { |
37 | | - url = "github:input-output-hk/ops-lib"; |
| 12 | + url = "ops-lib"; |
38 | 13 | flake = false; |
39 | 14 | }; |
40 | | - |
41 | | - # DEPRECATED: will be replaces by cicero soon |
42 | | - hydra.url = "github:kreisys/hydra/hydra-server-includes"; |
43 | | - hydra.inputs.nix.follows = "nix"; |
44 | | - hydra.inputs.nixpkgs.follows = "nixpkgs"; |
45 | 15 | }; |
46 | 16 |
|
47 | 17 | outputs = { |
48 | 18 | self, |
49 | | - hydra, |
50 | 19 | nixpkgs, |
51 | 20 | nixpkgs-unstable, |
52 | | - utils, |
53 | | - deploy, |
54 | | - ragenix, |
55 | 21 | nix, |
56 | | - fenix, |
57 | 22 | ... |
58 | | - } @ inputs: |
| 23 | + } @ pub: let |
| 24 | + inherit (inputs) std utils; |
| 25 | + |
| 26 | + priv = (import ./lib/call-flake.nix) { |
| 27 | + type = "path"; |
| 28 | + path = ./private; |
| 29 | + # needs to be updated any time private inputs are touched |
| 30 | + narHash = "sha256-WpyvDOGanWmgh1bk/KF8L0SL/wkJq9oB6aswlIDtNRs="; |
| 31 | + } {}; |
| 32 | + |
| 33 | + inputs = priv.inputs // pub; |
| 34 | + in |
59 | 35 | inputs.std.growOn { |
60 | 36 | inherit inputs; |
61 | 37 | cellsFrom = ./nix; |
|
86 | 62 | # soil -- TODO: remove soil |
87 | 63 | (let |
88 | 64 | overlays = [ |
89 | | - fenix.overlay |
90 | | - nix.overlay |
91 | | - hydra.overlay |
92 | | - deploy.overlay |
| 65 | + inputs.hydra.overlay |
| 66 | + # inputs.deploy.overlay |
93 | 67 | localPkgsOverlay |
94 | 68 | terraformProvidersOverlay |
95 | 69 | (_: prev: {inherit (self.packages."${prev.system}") bitte;}) |
|
0 commit comments