-
-
Notifications
You must be signed in to change notification settings - Fork 216
/
flake.nix
52 lines (43 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
44
45
46
47
48
49
50
51
52
# General TODOS:
# - Add comments explaining the more terse parts of the flake.
{
description = "Flake for Neorg development and testing";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
neorocks.url = "github:nvim-neorocks/neorocks";
neorocks.inputs.nixpkgs.follows = "nixpkgs";
gen-luarc.url = "github:mrcjkb/nix-gen-luarc-json";
gen-luarc.inputs.nixpkgs.follows = "nixpkgs";
git-hooks.url = "github:cachix/git-hooks.nix";
git-hooks.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs @ {
self,
nixpkgs,
flake-parts,
neorocks,
gen-luarc,
git-hooks,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
_module.args = {inherit gen-luarc neorocks git-hooks;};
imports = [
./nix/overlays
./nix/checks
];
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
imports = [
./nix/packages
./nix/shells
];
};
};
}