diff options
Diffstat (limited to 'tests/modules/declare-coerced-value.nix')
-rw-r--r-- | tests/modules/declare-coerced-value.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/modules/declare-coerced-value.nix b/tests/modules/declare-coerced-value.nix new file mode 100644 index 000000000..76b12ad53 --- /dev/null +++ b/tests/modules/declare-coerced-value.nix @@ -0,0 +1,10 @@ +{ lib, ... }: + +{ + options = { + value = lib.mkOption { + default = 42; + type = lib.types.coercedTo lib.types.int builtins.toString lib.types.str; + }; + }; +} |