Compare commits

..

18 commits

Author SHA1 Message Date
1f2b2da9c2
[HACK] comment environment resources type, making the test go through 2025-07-22 19:01:10 +02:00
b8fbd42e8d
[HACK] explicitly set resource options, as defaults seem insufficient 2025-07-22 19:01:10 +02:00
96e0f97dd8
[HACK] explicitly pass instantiated policy to apply 2025-07-22 19:01:10 +02:00
4527ed6824
[HACK] unwire deployment resource-mapping output-type, fixes error: Expected a module, but found a value of type "option-type" 2025-07-22 19:01:10 +02:00
c0e0589f37
[HACK] swap out nixops4 deployments for raw nixos modules
rm deployment
2025-07-22 19:01:10 +02:00
ce81b0cbd1
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:01:10 +02:00
aabd96dbce
swap out dummy module for actual import
clean deployment module a bit

simplify imports
2025-07-22 19:01:10 +02:00
a750388afd
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:01:10 +02:00
ec66534992
environment: fix implementation type 2025-07-22 19:01:10 +02:00
42a275d7fe
pass resourceProviderSystem to nixops4Deployment 2025-07-22 19:01:10 +02:00
2c0910427a
resolve resource mapping input discrepancy according to actual implementation, adjusting the type accordingly 2025-07-22 19:01:10 +02:00
3faa47570b
properly flatten out application layer at users.users 2025-07-22 19:01:10 +02:00
439ca6d13c
fix application resource type 2025-07-22 19:01:10 +02:00
272b0f1584
fix application-requirements 2025-07-22 18:25:27 +02:00
f2a35dec24
untangle applications from function type, as they seem to not need the introspection (and may type-check input without it) 2025-07-22 18:25:27 +02:00
4767e0b97c
make packages filter return a list 2025-07-22 18:25:27 +02:00
ac81cc5780
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 18:25:25 +02:00
618a891062
fix environment deployment 2025-07-22 18:01:10 +02:00

View file

@ -11,6 +11,7 @@ let
; ;
inherit (pkgs) lib; inherit (pkgs) lib;
inherit (import sources.flake-inputs) import-flake; inherit (import sources.flake-inputs) import-flake;
inputs = (import-flake { src = ./.; }).inputs;
inherit ((import-flake { src = ./.; }).inputs) nixops4; inherit ((import-flake { src = ./.; }).inputs) nixops4;
panel = import ./panel { inherit sources system; }; panel = import ./panel { inherit sources system; };
pre-commit-check = pre-commit-check =
@ -78,6 +79,7 @@ in
# re-export inputs so they can be overridden granularly # re-export inputs so they can be overridden granularly
# (they can't be accessed from the outside any other way) # (they can't be accessed from the outside any other way)
inherit inherit
inputs
sources sources
system system
pkgs pkgs