kubenix/modules/base.nix

40 lines
924 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
{
options = {
kubenix.project = mkOption {
description = "Name of the project";
type = types.str;
default = "kubenix";
};
_m.features = mkOption {
description = "List of features exposed by module";
type = types.listOf types.str;
2021-05-13 17:27:08 -04:00
default = [ ];
};
_m.propagate = mkOption {
description = "Module propagation options";
2021-05-13 17:27:08 -04:00
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;
2021-05-13 17:27:08 -04:00
default = [ ];
};
module = mkOption {
description = "Module to propagate";
type = types.unspecified;
2021-05-13 17:27:08 -04:00
default = { };
};
};
}));
2021-05-13 17:27:08 -04:00
default = [ ];
};
};
}