reproduce nixops4-nixos importing issue: The option environments.single-nixos-vm.deployment.<function body>.resources.the-machine.nixos' does not exist`

add comment explaining our nixops4 type problem
This commit is contained in:
Kiara Grouwstra 2025-07-20 22:55:38 +02:00
parent d7e4830bd7
commit c8882e32f6
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -141,11 +141,16 @@ in
providers = {
inherit (inputs.nixops4.modules.nixops4Provider) local;
};
# this seems checked according to {providers,resources,resource}.nix,
# values will not eagerly get checked, matching `providers.nix`'s `lazyAttrsOf`,
# whereas allowed keys seem to match those defined in `resource.nix`.
# the content of `resources.the-machine` however, follows `nixops4-nixos`,
# which is not allowed through our `type` yet.
resources.the-machine = {
_class = "nixops4Resource";
type = providers.local.exec;
imports = [
# inputs.nixops4-nixos.modules.nixops4Resource.nixos
inputs.nixops4-nixos.modules.nixops4Resource.nixos
];
nixos.module =
{ ... }: