forked from Fediversity/Fediversity
revert submodule
wrapper to align with module functions already doing types #2
1 changed files with 25 additions and 18 deletions
|
@ -18,24 +18,31 @@ let
|
||||||
_class = "nixos";
|
_class = "nixos";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
runtime-environment = attrTag {
|
runtime-environment = attrTag (
|
||||||
nixos = mkOption {
|
mapAttrs
|
||||||
type = submoduleWith {
|
(
|
||||||
modules = [
|
name: options:
|
||||||
{
|
mkOption {
|
||||||
options = {
|
type = submoduleWith {
|
||||||
module = mkOption {
|
modules = [
|
||||||
description = "The NixOS module of the run-time environment";
|
{
|
||||||
type = deferredModule;
|
options = options // {
|
||||||
default = config.runtime-configurations.nixos;
|
module = mkOption {
|
||||||
readOnly = true;
|
description = "The NixOS module of the run-time environment";
|
||||||
};
|
type = deferredModule;
|
||||||
};
|
default = config.runtime-configurations.${name};
|
||||||
}
|
readOnly = true;
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
};
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
{
|
||||||
|
nixos = { };
|
||||||
|
}
|
||||||
|
);
|
||||||
application = submoduleWith {
|
application = submoduleWith {
|
||||||
description = "A Fediversity application";
|
description = "A Fediversity application";
|
||||||
modules = [
|
modules = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue