-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
63 lines (58 loc) · 1.42 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
61
62
63
{
description = "reo101's Neovim configuration";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
rix101 = {
url = "github:reo101/rix101";
inputs.nixpkgs.follows = "nixpkgs";
};
cornelis = {
url = "github:isovector/cornelis";
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
extra-substituters = [
"https://rix101.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"rix101.cachix.org-1:2u9ZGi93zY3hJXQyoHkNBZpJK+GiXQyYf9J5TLzCpFY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
outputs =
{ self
, nixpkgs
, neovim-nightly-overlay
, rix101
, cornelis
, ...
} @ inputs :
let
inherit (self) outputs;
util = import ./nix/util.nix {
inherit inputs outputs;
};
in
rec {
# Packages (`nix build`)
packages = util.forEachPkgs (pkgs:
import ./nix/pkgs { inherit pkgs; }
);
# Apps (`nix run`)
apps = util.forEachPkgs (pkgs:
import ./nix/apps { inherit pkgs; }
);
# Home Manager modules
homeManagerModules = import ./nix/modules/home-manager {
inherit inputs outputs;
};
};
}