Compare commits

..

22 commits

Author SHA1 Message Date
4c9db0d540
[HACK] comment environment resources type, making the test go through 2025-07-22 19:12:58 +02:00
63d668a69d
[HACK] explicitly set resource options, as defaults seem insufficient 2025-07-22 19:12:58 +02:00
d24738133f
[HACK] explicitly pass instantiated policy to apply 2025-07-22 19:12:58 +02:00
0b4aa2e084
[HACK] unwire deployment resource-mapping output-type, fixes error: Expected a module, but found a value of type "option-type" 2025-07-22 19:12:58 +02:00
91c5d16f06
[HACK] swap out nixops4 deployments for raw nixos modules
rm deployment

rm imports
2025-07-22 19:12:58 +02:00
a8fdc72460
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 19:12:58 +02:00
5ab9f3afeb
swap out dummy module for actual import
clean deployment module a bit

simplify imports
2025-07-22 19:12:58 +02:00
f7da88c919
model: [DUMMY] use mock deployment to temporarily simplify the problem
type policy.apply

remove `apply`'s optionType, fixes duplicate definition error
2025-07-22 19:12:58 +02:00
9b5eb50fbc
environment: fix implementation type 2025-07-22 19:12:58 +02:00
3efe6f347f
pass resourceProviderSystem to nixops4Deployment 2025-07-22 19:12:58 +02:00
cd097a7afd
resolve resource mapping input discrepancy according to actual implementation, adjusting the type accordingly 2025-07-22 19:12:58 +02:00
e668239f8a
properly flatten out application layer at users.users 2025-07-22 19:12:58 +02:00
4f024c8030
fix application resource type 2025-07-22 19:12:58 +02:00
7ec11ebde8
fix application-requirements 2025-07-22 19:12:58 +02:00
a6fc12709d
resolve rebase 2025-07-22 19:12:58 +02:00
cce6a06bf3
untangle applications from function type, as they seem to not need the introspection (and may type-check input without it) 2025-07-22 19:12:58 +02:00
9f43c8a278
make packages filter return a list 2025-07-22 19:12:56 +02:00
8173f65f18
add trivial unit test for deployment - now to find how to make it work!
test proper expectation

test proper expectation

settle for counting packages over comparing them, solves an infinite recursion
2025-07-22 19:12:52 +02:00
1b3dc70466
fix environment deployment 2025-07-22 19:12:51 +02:00
eba4be2b1e
model: add classes
remove _class for application requirements to allow iterating over values

rm function class

re-add nix-unit class
2025-07-22 19:12:50 +02:00
1cc6a31c9c
use submodule to turn module into type for functionTo 2025-07-22 19:12:48 +02:00
c94d575392
use mapAttrs right
`mapAttrs'` takes two args rather than a set, whereas if only the val
changes `mapAttrs (_: v: ...)` should do
2025-07-22 19:12:47 +02:00

View file

@ -15,6 +15,8 @@ let
}).config; }).config;
in in
{ {
_class = "nix-unit";
test-eval = { test-eval = {
expr = expr =
let let