-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.nix
36 lines (36 loc) · 836 Bytes
/
test.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
{
pkgs,
lib,
config,
...
}: {
options = {
devsh = lib.options.mkOption {
type = lib.types.package;
description = "the devshell";
internal = true;
};
packages = lib.options.mkOption {
type = lib.types.listOf lib.types.package;
default = [];
};
home.packages = lib.options.mkOption {
type = lib.types.listOf lib.types.package;
default = [];
};
environment.defaultPackages = lib.options.mkOption {
type = lib.types.listOf lib.types.package;
default = [];
};
};
config = {
documentation = {
module-system-name = "test"; # avoid 'has conflicting definition values'
option-search.enable = true;
package-search.enable = true;
};
devsh = pkgs.mkShellNoCC {
buildInputs = config.packages or [];
};
};
}