forked from Fediversity/Fediversity
have run-time environments use their corresponding run-time configurations
This commit is contained in:
parent
8b2ee21dbe
commit
c1f3aa6aed
1 changed files with 25 additions and 18 deletions
|
@ -18,24 +18,31 @@ let
|
|||
_class = "nixos";
|
||||
};
|
||||
};
|
||||
runtime-environment = attrTag {
|
||||
nixos = mkOption {
|
||||
type = submoduleWith {
|
||||
modules = [
|
||||
{
|
||||
options = {
|
||||
module = mkOption {
|
||||
description = "The NixOS module of the run-time environment";
|
||||
type = deferredModule;
|
||||
default = config.runtime-configurations.nixos;
|
||||
readOnly = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
runtime-environment = attrTag (
|
||||
mapAttrs
|
||||
(
|
||||
name: options:
|
||||
mkOption {
|
||||
type = submoduleWith {
|
||||
modules = [
|
||||
{
|
||||
options = options // {
|
||||
module = mkOption {
|
||||
description = "The NixOS module of the run-time environment";
|
||||
type = deferredModule;
|
||||
default = config.runtime-configurations.${name};
|
||||
readOnly = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
)
|
||||
{
|
||||
nixos = { };
|
||||
}
|
||||
);
|
||||
application = submoduleWith {
|
||||
description = "A Fediversity application";
|
||||
modules = [
|
||||
|
|
Loading…
Add table
Reference in a new issue