diff options
Diffstat (limited to 'lib/tests/modules')
-rw-r--r-- | lib/tests/modules/declare-int-positive-value.nix | 9 | ||||
-rw-r--r-- | lib/tests/modules/define-value-int-zero.nix | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/tests/modules/declare-int-positive-value.nix b/lib/tests/modules/declare-int-positive-value.nix new file mode 100644 index 0000000000000..6e48c6ac8feba --- /dev/null +++ b/lib/tests/modules/declare-int-positive-value.nix @@ -0,0 +1,9 @@ +{ lib, ... }: + +{ + options = { + value = lib.mkOption { + type = lib.types.ints.positive; + }; + }; +} diff --git a/lib/tests/modules/define-value-int-zero.nix b/lib/tests/modules/define-value-int-zero.nix new file mode 100644 index 0000000000000..68bb9f415c3c9 --- /dev/null +++ b/lib/tests/modules/define-value-int-zero.nix @@ -0,0 +1,3 @@ +{ + value = 0; +} |