2019-03-12 20:33:56 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
|
|
{
|
2019-10-06 21:30:20 +02:00
|
|
|
options = {
|
|
|
|
|
kubenix.project = mkOption {
|
2019-03-12 20:33:56 +01:00
|
|
|
description = "Name of the project";
|
|
|
|
|
type = types.str;
|
|
|
|
|
default = "kubenix";
|
|
|
|
|
};
|
2019-10-06 21:30:20 +02:00
|
|
|
|
|
|
|
|
_module.features = mkOption {
|
|
|
|
|
description = "List of features exposed by module";
|
|
|
|
|
type = types.listOf types.str;
|
|
|
|
|
default = [];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
_module.propagate = mkOption {
|
|
|
|
|
description = "Module propagation options";
|
|
|
|
|
type = types.listOf (types.submodule ({config, ...}: {
|
|
|
|
|
options = {
|
|
|
|
|
features = mkOption {
|
|
|
|
|
description = "List of features that submodule has to have to propagate module";
|
|
|
|
|
type = types.listOf types.str;
|
|
|
|
|
default = [];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module = mkOption {
|
|
|
|
|
description = "Module to propagate";
|
|
|
|
|
type = types.unspecified;
|
|
|
|
|
default = {};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}));
|
|
|
|
|
default = [];
|
|
|
|
|
};
|
2019-03-12 20:33:56 +01:00
|
|
|
};
|
|
|
|
|
}
|