mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-22 05:07:45 +03:00
20 lines
308 B
Nix
20 lines
308 B
Nix
|
{ 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);
|
||
|
};
|
||
|
}
|