Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
34 lines
603 B
Nix
34 lines
603 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
|
|
moduleWithKey = {
|
|
key = "disable-module-with-key.nix#moduleWithKey";
|
|
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 = [ moduleWithKey ];
|
|
};
|
|
default = {};
|
|
};
|
|
};
|
|
}
|