-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.nix
57 lines (48 loc) · 1.02 KB
/
setup.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
{lib, ...}: let
inherit (lib) mkOption types;
boolOpt = mkOption {type = types.bool;};
defaultTrue = mkOption {
default = true;
type = types.bool;
};
defaultFalse = mkOption {
default = false;
type = types.bool;
};
in {
imports = [
./modules/core.nix
./modules/autoCmdGroups.nix
./modules/filetypes.nix
./modules/keymaps.nix
./modules/options.nix
./modules/plugins
];
options.setup = {
useNightly = defaultFalse;
pluginGroups = {
base = defaultTrue;
niceToHave = defaultFalse;
programming = defaultFalse;
};
lang = {
enable = defaultTrue;
nix = defaultTrue;
c_cpp = boolOpt;
configFiles = boolOpt;
dlang = boolOpt;
dockerfile = boolOpt;
elixir = boolOpt;
haskell = boolOpt;
julia = boolOpt;
jvm = boolOpt;
latex = boolOpt;
lean4 = boolOpt;
lua = boolOpt;
python = boolOpt;
rust = boolOpt;
shell = boolOpt;
webDev = boolOpt;
};
};
}