-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (38 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
39
40
41
42
43
{
description = "A flake containing various utilities for Nix";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
"i686-linux"
"powerpc64le-linux"
"riscv64-linux"
"x86_64-darwin"
"x86_64-freebsd"
"x86_64-linux"
];
imports = [
./lib
];
flake.templates = inputs.nixpkgs.lib.pipe ./templates [
builtins.readDir (builtins.mapAttrs (name: _: {
description = "A flake for this ${name} project.";
path = ./templates/${name};
}))
];
perSystem = { inputs', ... }:
{
formatter = inputs'.nixpkgs.legacyPackages.nixfmt-rfc-style;
};
};
}