core/lib/tests/modules/module-argument-default.nix
2024-06-30 09:16:52 +01:00

15 lines
146 B
Nix

{
a ? false,
lib,
...
}:
{
options = {
result = lib.mkOption { };
};
config = {
_module.args.a = true;
result = a;
};
}