nixos/hadoop: add types

Changed files
+4
nixos
modules
services
cluster
hadoop
+4
nixos/modules/services/cluster/hadoop/default.nix
···
options.services.hadoop = {
coreSite = mkOption {
default = {};
example = literalExample ''
{
"fs.defaultFS" = "hdfs://localhost";
···
hdfsSite = mkOption {
default = {};
example = literalExample ''
{
"dfs.nameservices" = "namenode1";
···
mapredSite = mkOption {
default = {};
example = literalExample ''
{
"mapreduce.map.cpu.vcores" = "1";
···
yarnSite = mkOption {
default = {};
example = literalExample ''
{
"yarn.resourcemanager.ha.id" = "resourcemanager1";
···
options.services.hadoop = {
coreSite = mkOption {
default = {};
+
type = types.attrsOf types.anything;
example = literalExample ''
{
"fs.defaultFS" = "hdfs://localhost";
···
hdfsSite = mkOption {
default = {};
+
type = types.attrsOf types.anything;
example = literalExample ''
{
"dfs.nameservices" = "namenode1";
···
mapredSite = mkOption {
default = {};
+
type = types.attrsOf types.anything;
example = literalExample ''
{
"mapreduce.map.cpu.vcores" = "1";
···
yarnSite = mkOption {
default = {};
+
type = types.attrsOf types.anything;
example = literalExample ''
{
"yarn.resourcemanager.ha.id" = "resourcemanager1";