-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
92 lines (78 loc) · 2.08 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
description = "A nixvim configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
nix-colors.url = "github:misterio77/nix-colors";
# Plugins that are not in nixpkgs
plugin-img-clip = {
url = "github:HakonHarnes/img-clip.nvim";
flake = false;
};
plugin-move = {
url = "github:fedepujol/move.nvim";
flake = false;
};
plugin-org-bullets = {
url = "github:nvim-orgmode/org-bullets.nvim";
flake = false;
};
plugin-cmp-vimtex = {
url = "github:micangl/cmp-vimtex";
flake = false;
};
plugin-cmp-nerdfont = {
url = "github:chrisgrieser/cmp-nerdfont";
flake = false;
};
# plugin-texmagic = {
# url = "github:jakewvincent/texmagic.nvim";
# flake = false;
# };
# plugin-hologram = {
# url = "github:edluffy/hologram.nvim";
# flake = false;
# };
plugin-obsidian-bridge = {
url = "github:oflisback/obsidian-bridge.nvim";
flake = false;
};
plugin-obsidian-todo = {
url = "github:LilleAila/obsidian-todo.nvim";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ nixpkgs, ... }@inputs:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
pkgsFor = lib.genAttrs systems (system: import nixpkgs { inherit system; });
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
in
{
packages = forEachSystem (pkgs: rec {
default = pkgs.callPackage ./package.nix {
inherit inputs;
colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium;
};
nvim = default;
nixvim = default;
});
devShells = forEachSystem (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
nixfmt-rfc-style
nixd
statix
];
};
});
};
}