adjust deployment type

this is a cop-out possible until
fricklerhandwerk/Fediversity#15.
after that, this will require actually figuring out how to get `options`
for `deployment.nix` - which may need `evalModules` with
`data-model.nix`.
This commit is contained in:
Kiara Grouwstra 2025-08-26 23:47:03 +02:00
parent 3fa1756feb
commit 2283a62ae9
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
2 changed files with 3 additions and 2 deletions

View file

@ -146,6 +146,7 @@ let
};
};
"example-deployment" = mkOption {
type = config.environments.single-nixos-vm.resource-mapping.output-type;
default = config.environments.single-nixos-vm.deployment config."example-configuration";
};
};

View file

@ -31,7 +31,7 @@ in
expr =
let
fediversity = eval (
{ config, options, ... }:
{ config, ... }:
{
config = {
resources.login-shell = {
@ -148,7 +148,7 @@ in
};
};
"example-deployment" = mkOption {
type = options.deployments.nestedType;
type = config.environments.single-nixos-vm.resource-mapping.output-type;
readOnly = true;
default = config.environments.single-nixos-vm.deployment config."example-configuration";
};