forked from Fediversity/Fediversity
part of #103. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> Reviewed-on: Fediversity/Fediversity#387 Co-authored-by: Kiara Grouwstra <kiara@procolix.eu> Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) types mkOption;
|
|
in
|
|
with types;
|
|
{
|
|
options = {
|
|
runtime-environments = mkOption {
|
|
description = "Collection of runtime environments into which applications can be deployed";
|
|
type = attrsOf (attrTag {
|
|
nixos = mkOption {
|
|
description = "A single NixOS machine";
|
|
type = submodule {
|
|
options = {
|
|
module = mkOption {
|
|
description = "The NixOS module describing the base configuration for that machine";
|
|
type = deferredModule;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
});
|
|
};
|
|
applications = mkOption {
|
|
description = "Collection of Fediversity applications";
|
|
type = attrsOf (submoduleWith {
|
|
modules = [
|
|
{
|
|
options = {
|
|
module = mkOption {
|
|
description = "The NixOS module for that application, for configuring that application";
|
|
type = deferredModule;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
});
|
|
};
|
|
};
|
|
}
|