-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
57 lines (53 loc) · 1.86 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
{
description = "Cherry-picked components from ony's Nix configs";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }: {
overlay = final: prev: {
unionfarm = final.pkgs.callPackage ./pkgs/unionfarm.nix { };
pidgin-chime = final.pkgs.callPackage ./pkgs/pidgin-chime.nix { };
nix-script-ruby = final.pkgs.writeScriptBin "nix-script-ruby"
(builtins.readFile ./scripts/nix-script-ruby);
vimPlugins = prev.vimPlugins // {
nvim-treesitter-playground = final.pkgs.vimUtils.buildVimPlugin {
name = "nvim-treesitter-playground";
src = final.pkgs.fetchFromGitHub {
owner = "nvim-treesitter";
repo = "playground";
rev = "787a7a8d4444e58467d6b3d4b88a497e7d494643";
hash = "sha256-YMINv064VzuzZLuQNY6HN3oCZvYjNQi6IMliQPTijfg=";
};
};
nvim-spellsitter = final.pkgs.vimUtils.buildVimPlugin {
name = "nvim-spellsitter";
dontBuild = true;
src = final.pkgs.fetchFromGitHub {
owner = "lewis6991";
repo = "spellsitter.nvim";
rev = "3458915f9cccc7a4c95f272793790628fcd49bf7";
hash = "sha256-Tedv5x35MuLftWg0q8bYMM7Jhw7dMImeFP90IfdfJuY=";
};
};
};
};
homeManagerModules = {
neovim-coc = import ./home/modules/neovim-coc.nix;
neovim-tree-sitter = import ./home/modules/neovim-tree-sitter.nix;
};
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlay ];
};
in
{
packages = {
inherit (pkgs) unionfarm pidgin-chime nix-script-ruby;
vimPlugins = {
inherit (pkgs.vimPlugins)
nvim-treesitter-playground
nvim-spellsitter;
};
};
});
}