forked from Nano-Collective/nanocoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
47 lines (41 loc) · 1.03 KB
/
flake.nix
File metadata and controls
47 lines (41 loc) · 1.03 KB
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
{
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
snowfall-lib = {
url = "https://flakehub.com/f/snowfallorg/lib/3.0.3";
inputs.nixpkgs.follows = "nixpkgs";
};
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
let
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./nix;
snowfall = {
namespace = "snowflake";
};
};
in
lib.mkFlake {
inherit inputs;
src = ./nix;
outputs-builder = channels: {
formatter = channels.nixpkgs.nixpkgs-fmt;
checks.pre-commit-check = inputs.pre-commit-hooks.lib.${channels.nixpkgs.system}.run {
src = ./.;
hooks = {
nixfmt = {
enable = true;
entry = "${channels.nixpkgs.nixfmt}/bin/nixfmt";
extraPackages = [ channels.nixpkgs.nixfmt ];
};
};
};
};
};
}