core/lib/tests/modules/module-argument-default.nix

15 lines
146 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{
a ? false,
lib,
...
}:
{
2024-05-01 22:14:04 +00:00
options = {
2024-06-30 08:16:52 +00:00
result = lib.mkOption { };
2024-05-01 22:14:04 +00:00
};
config = {
_module.args.a = true;
result = a;
};
}