summary refs log tree commit diff
path: root/lib/tests/modules/declare-coerced-value.nix
blob: 76b12ad53f00c21713ff29d811c8dd8f3c9b2fb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
{ lib, ... }:

{
  options = {
    value = lib.mkOption {
      default = 42;
      type = lib.types.coercedTo lib.types.int builtins.toString lib.types.str;
    };
  };
}