-
Notifications
You must be signed in to change notification settings - Fork 8
/
flake.nix
116 lines (99 loc) · 3.25 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
description = "ri7's nix darwin system";
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-linux"
];
imports = [
inputs.pre-commit-hooks.flakeModule
./nix
./nvim.nix
];
};
inputs = {
# utilities for Flake
flake-parts.url = "github:hercules-ci/flake-parts";
## -- nixpkgs
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs.follows = "nixpkgs-unstable";
### -- nix related tools
nixd.url = "github:nix-community/nixd";
nixd.inputs.nixpkgs.follows = "nixpkgs";
## -- Languages
ocaml-overlay.url = "github:nix-ocaml/nix-overlays";
ocaml-overlay.inputs.nixpkgs.follows = "nixpkgs";
server-reason-react = {
url = "github:ml-in-barcelona/server-reason-react";
flake = false;
};
quickjs-ml = {
url = "git+https://github.com/ml-in-barcelona/quickjs.ml?submodules=1";
flake = false;
};
styled-ppx = {
url = "github:davesnx/styled-ppx?rev=2b69b67ab10244aed612005bd127031f16289cc7";
flake = false;
};
## -- Platform
#### ---- MacOS
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
#### ---- Home
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
#### ---- Android
nix-on-droid.url = "github:nix-community/nix-on-droid";
nix-on-droid.inputs.nixpkgs.follows = "nixpkgs";
nix-on-droid.inputs.home-manager.follows = "home-manager";
#### ---- nixvim
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
nixvim.inputs.nix-darwin.follows = "nix-darwin";
nixvim.inputs.home-manager.follows = "home-manager";
nixvim.inputs.flake-parts.follows = "flake-parts";
iamb.url = "github:ulyssa/iamb";
iamb.inputs.nixpkgs.follows = "nixpkgs";
# secret management
sops.url = "github:Mic92/sops-nix";
sops.inputs.nixpkgs.follows = "nixpkgs";
sops.inputs.nixpkgs-stable.follows = "nixpkgs-stable";
# utilities
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
# vimPlugins from flake inputs
# prefix "vimPlugins_"
# e.g: rescript-nvim to be vimPlugins_rescript-nvim
# e.g usage: programs.neovim.plugins = p: [p.rescript-nvim] or [pkgs.vimPlugins.rescript-nvim];
vimPlugins_vim-rescript = {
url = "github:rescript-lang/vim-rescript";
flake = false;
};
vimPlugins_supermaven-nvim = {
url = "github:supermaven-inc/supermaven-nvim";
flake = false;
};
vimPlugins_lackluster = {
url = "github:slugbyte/lackluster.nvim";
flake = false;
};
# others
ts-rescript = {
url = "github:nkrkv/tree-sitter-rescript";
flake = false;
};
nix-env = {
url = "github:lilyball/nix-env.fish";
flake = false;
};
sketchybar-app-font = {
url = "github:kvndrsslr/sketchybar-app-font";
flake = false;
};
};
}