repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #298967 from vbgl/ocaml-5.2.0
[NixPkgs.git]
/
lib
/
tests
/
modules
/
disable-module-with-key.nix
blob
ea2a60aa832d07cc1231292eccaada0feca1545f
1
{ lib, ... }:
2
let
3
inherit (lib) mkOption types;
4
5
moduleWithKey = {
6
key = "disable-module-with-key.nix#moduleWithKey";
7
config = {
8
enable = true;
9
};
10
};
11
in
12
{
13
options = {
14
positive = mkOption {
15
type = types.submodule {
16
imports = [
17
./declare-enable.nix
18
moduleWithKey
19
];
20
};
21
default = {};
22
};
23
negative = mkOption {
24
type = types.submodule {
25
imports = [
26
./declare-enable.nix
27
moduleWithKey
28
];
29
disabledModules = [ moduleWithKey ];
30
};
31
default = {};
32
};
33
};
34
}