adjust deployment type
Some checks failed
/ check-pre-commit (pull_request) Successful in 14s
/ check-data-model (pull_request) Successful in 32s
/ check-mastodon (pull_request) Successful in 23s
/ check-peertube (pull_request) Successful in 22s
/ check-panel (pull_request) Successful in 1m30s
/ check-deployment-basic (pull_request) Failing after 1m30s
/ check-deployment-cli (pull_request) Failing after 2m0s
/ check-deployment-panel (pull_request) Failing after 3m40s
/ check-deployment-model (pull_request) Successful in 3m0s
/ check-resources (pull_request) Successful in 4m22s

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 64905f0b1c
commit fbb6a45292
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";
};