-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathflake.nix
60 lines (48 loc) · 1.36 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
53
54
55
56
57
58
59
60
{
description = "Jake Hamilton's Neovim configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "unstable";
};
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
# TODO: a todo
# NOTE: a note
# WARN: a warning
# HACK: a hack
outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "plusultra";
};
channels-config.allowUnfree = true;
alias.packages.default = "neovim";
overlays = with inputs; [ nixvim.overlays.default ];
outputs-builder = channels: {
formatter = channels.nixpkgs.nixfmt-rfc-style;
checks.pre-commit-check = inputs.pre-commit-hooks.lib.${channels.nixpkgs.system}.run {
src = ./.;
hooks = {
nixfmt = {
enable = true;
entry = "${channels.nixpkgs.nixfmt-rfc-style}/bin/nixfmt";
extraPackages = [ channels.nixpkgs.nixfmt-rfc-style ];
};
};
};
};
};
}