25 lines
329 B
Nix
25 lines
329 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
namespace,
|
|
system,
|
|
target,
|
|
format,
|
|
virtual,
|
|
systems,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.${namespace}; let
|
|
cfg = config.${namespace}.module;
|
|
in {
|
|
options.${namespace}.module = with types; {
|
|
enable = mkBoolOpt false "Enable module";
|
|
};
|
|
|
|
config =
|
|
mkIf cfg.enable {
|
|
};
|
|
}
|