83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
34 lines
553 B
Nix
34 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 = {};
|
|
};
|
|
};
|
|
}
|