mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
35 lines
553 B
Nix
35 lines
553 B
Nix
|
{ lib, ... }:
|
||
|
let
|
||
|
inherit (lib) mkOption types;
|
||
|
|
||
|
moduleWithKey = {
|
||
|
key = 123;
|
||
|
config = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
positive = mkOption {
|
||
|
type = types.submodule {
|
||
|
imports = [
|
||
|
./declare-enable.nix
|
||
|
moduleWithKey
|
||
|
];
|
||
|
};
|
||
|
default = {};
|
||
|
};
|
||
|
negative = mkOption {
|
||
|
type = types.submodule {
|
||
|
imports = [
|
||
|
./declare-enable.nix
|
||
|
moduleWithKey
|
||
|
];
|
||
|
disabledModules = [ 123 ];
|
||
|
};
|
||
|
default = {};
|
||
|
};
|
||
|
};
|
||
|
}
|