mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:23:02 +00:00
35 lines
603 B
Nix
35 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 = {};
|
||
|
};
|
||
|
};
|
||
|
}
|