-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
38 lines (37 loc) · 1019 Bytes
/
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
{
nixConfig = {
extra-substituters = [
"https://cache.iog.io"
"https://nixcache.plowtech.net:9876/"
];
extra-trusted-public-keys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"jenkins.plowtech.net-1:7MnrDY0TzJTvmaSlRT25noN7qbvqRnLoLOqaxMBNckI="
];
};
inputs = {
all.url = "git+ssh://[email protected]/plow-technologies/all?ref=rory-lumberjack-automate";
nixpkgs.follows = "all/nixpkgs";
parameter = {
url = "path:./lumberjack-automate/modules/dummy.nix";
flake = false;
};
};
outputs = { self, all, ... }@inputs:
let
system = "x86_64-linux";
pkgs = all.legacyPackages.${system};
mkScript = modules:
(
import ./lumberjack-automate/modules/eval.nix {
inherit pkgs modules inputs;
}
).config.driver.script;
in
{
legacyPackages.${system} = pkgs;
packages.${system}.default = mkScript [
(import inputs.parameter)
];
};
}