blob: 7ea5aeb51044e6c31f113e084e47e3d114f03dac (
plain)
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
64
65
66
67
68
69
70
71
|
{
description = "Flake exporting a configured neovim package";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
wrappers.url = "github:BirdeeHub/nix-wrapper-modules";
wrappers.inputs.nixpkgs.follows = "nixpkgs";
plugins-lze = {
url = "github:BirdeeHub/lze";
flake = false;
};
plugins-lzextras = {
url = "github:BirdeeHub/lzextras";
flake = false;
};
plugins-base46 = {
url = "github:AvengeMedia/base46";
flake = false;
};
plugins-neogit = {
url = "github:NeogitOrg/neogit";
flake = false;
};
};
outputs =
{
self,
nixpkgs,
wrappers,
...
}@inputs:
let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all;
module = nixpkgs.lib.modules.importApply ./module.nix inputs;
wrapper = wrappers.lib.evalModule module;
in
{
wrapperModules = {
neovim = module;
default = self.wrapperModules.neovim;
};
wrappers = {
neovim = wrapper.config;
default = self.wrappers.neovim;
};
overlays = {
neovim = final: prev: { neovim = self.wrappers.neovim.wrap { pkgs = final; }; };
default = self.overlays.neovim;
};
packages = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
neovim = self.wrappers.neovim.wrap { inherit pkgs; };
default = self.packages.${system}.neovim;
}
);
nixosModules = {
default = self.nixosModules.neovim;
neovim = wrappers.lib.getInstallModule {
name = "neovim";
value = module;
};
};
homeModules = {
default = self.homeModules.neovim;
neovim = self.nixosModules.neovim;
};
};
}
|