0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

lib/tests/modules: Test that _module.args works when a default argument is set

This commit is contained in:
Robert Hensing 2023-07-12 21:54:57 +02:00
parent bf226bd766
commit 72f2c8d6c6
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,9 @@
{ a ? false, lib, ... }: {
options = {
result = lib.mkOption {};
};
config = {
_module.args.a = true;
result = a;
};
}