test application config

This commit is contained in:
Valentin Gagarin 2025-07-24 19:26:05 +02:00
parent 421d7b6f93
commit b49e426ed4
2 changed files with 19 additions and 5 deletions

View file

@ -106,7 +106,7 @@ in
module =
{ ... }:
{
enable = lib.mkEnableOption "Hello in the shell";
options.enable = lib.mkEnableOption "Hello in the shell";
};
implementation =
cfg:
@ -162,10 +162,13 @@ in
);
in
{
inherit (fediversity) example-deployment;
config = fediversity.example-configuration;
};
expected =
{
expected = {
config = {
enable = true;
applications.hello.enable = true;
};
};
};
}

View file

@ -25,7 +25,18 @@ let
);
};
};
nixops4Deployment = submodule inputs.nixops4.modules.nixops4Deployment.default;
nixops4Deployment = types.deferredModuleWith {
staticModules = [
inputs.nixops4.modules.nixops4Deployment.default
{
_module.args = {
resourceProviderSystem = builtins.currentSystem;
resources = { };
};
}
];
};
in
{
options = {