about summary refs log tree commit diff
path: root/lib/tests/modules/loaOf-with-long-list.nix
blob: f30903c47e5041bc2a83e60d0f6e027c6bbbe3d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, ... }:

{
  options = {
    loaOfInt = lib.mkOption {
      type = lib.types.loaOf lib.types.int;
    };

    result = lib.mkOption {
      type = lib.types.str;
    };
  };

  config = {
    loaOfInt = [ 1 2 3 4 5 6 7 8 9 10 ];

    result = toString (lib.attrValues config.loaOfInt);
  };
}