-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.nix
49 lines (49 loc) · 1.18 KB
/
base.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
{pkgs, lib, config, ...}:
let
inherit (lib) mkOption types optional;
in {
options = {
target = mkOption {
type = types.attrsOf types.package;
default = {};
visible = false;
};
identifier = mkOption {
type = types.str;
description = "Unique identifier for the configuration";
default = "default";
};
package = mkOption {
type = types.package;
description = "Emacs package used";
default = pkgs.emacs;
};
plugins = mkOption {
type = types.listOf types.package;
description = "Emacs plugins";
default = [];
};
extraFlags = mkOption {
type = types.listOf types.str;
description = "Extra flags to launch the entrypoint";
default = [];
};
initEl = {
pre = mkOption {
type = types.lines;
description = "init.el pre part for ordering";
default = "";
};
main = mkOption {
type = types.lines;
description = "init.el pre part for ordering";
default = "";
};
pos = mkOption {
type = types.lines;
description = "init.el pre part for ordering";
default = "";
};
};
};
}