forked from shanesveller/nix-beam-flakes
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
43 lines (36 loc) · 1.13 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
{
description = "Nix-based BEAM toolchain management";
nixConfig = {
extra-substituters = [
"https://nix-beam-flakes.cachix.org"
];
extra-trusted-public-keys = [
"nix-beam-flakes.cachix.org-1:iRMzLmb/dZFw7v08Rp3waYlWqYZ8nR3fmtFwq2prdk4="
];
};
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [./parts/all-parts.nix ./local-parts];
systems = ["aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
flake = {
flakeModule = ./parts/all-parts.nix;
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
};
templates = {
default = {
path = ./templates/default;
description = "An environment suitable for developing Elixir applications";
};
phoenix = {
path = ./templates/phoenix;
description = "An environment suitable for developing Phoenix 1.7 applications";
};
};
};
};
}