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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
146 B
Nix
Raw Normal View History

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