Compare commits

..

12 commits

Author SHA1 Message Date
f80ef23ca1
[HACK] comment environment resources type, making the test go through 2025-07-22 18:35:52 +02:00
b5f6a023f0
[HACK] explicitly set resource options, as defaults seem insufficient 2025-07-22 18:35:52 +02:00
777045aae9
[HACK] explicitly pass instantiated policy to apply 2025-07-22 18:35:52 +02:00
baee8f1ec0
[HACK] unwire deployment resource-mapping output-type, fixes error: Expected a module, but found a value of type "option-type" 2025-07-22 18:35:52 +02:00
f2a492ff1a
[HACK] swap out nixops4 deployments for raw nixos modules
rm deployment
2025-07-22 18:35:52 +02:00
ccbe6d9e83
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
2025-07-22 18:25:27 +02:00
d836e2294f
swap out dummy module for actual import
clean deployment module a bit

simplify imports
2025-07-22 18:25:27 +02:00
4b9cf35e88
model: [DUMMY] use mock deployment to temporarily simplify the problem
type policy.apply

remove `apply`'s optionType, fixes duplicate definition error
2025-07-22 18:25:27 +02:00
532f87b2ff
environment: fix implementation type 2025-07-22 18:25:27 +02:00
a3b5b8b2fe
pass resourceProviderSystem to nixops4Deployment 2025-07-22 18:25:27 +02:00
cbfdeb0cd7
resolve resource mapping input discrepancy according to actual implementation, adjusting the type accordingly 2025-07-22 18:25:27 +02:00
e8551f2cc3
properly flatten out application layer at users.users 2025-07-22 18:25:27 +02:00

View file

@ -106,11 +106,7 @@ in
# TODO: maybe transpose, and group the resources by type instead # TODO: maybe transpose, and group the resources by type instead
type = functionTo ( type = functionTo (
attrsOf ( attrsOf (
attrTag ( attrTag (lib.mapAttrs (_name: resource: mkOption { type = resource.request; }) config.resources)
lib.mapAttrs (
_name: resource: mkOption { type = types.submodule resource.request; }
) config.resources
)
) )
); );
}; };