Compare commits

..

18 commits

Author SHA1 Message Date
41624cc59b
[HACK] comment environment resources type, making the test go through 2025-07-22 19:05:38 +02:00
fe7cc67c6b
[HACK] explicitly set resource options, as defaults seem insufficient 2025-07-22 19:05:38 +02:00
574dea2d99
[HACK] explicitly pass instantiated policy to apply 2025-07-22 19:05:38 +02:00
d3d892bcfc
[HACK] unwire deployment resource-mapping output-type, fixes error: Expected a module, but found a value of type "option-type" 2025-07-22 19:05:38 +02:00
6625e94b2d
[HACK] swap out nixops4 deployments for raw nixos modules
rm deployment

rm imports
2025-07-22 19:05:38 +02:00
c486682657
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:05:38 +02:00
7240bb455f
swap out dummy module for actual import
clean deployment module a bit

simplify imports
2025-07-22 19:05:38 +02:00
55483570e0
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:05:38 +02:00
7185c04ddd
environment: fix implementation type 2025-07-22 19:05:38 +02:00
c528135040
pass resourceProviderSystem to nixops4Deployment 2025-07-22 19:05:38 +02:00
4952c65af1
resolve resource mapping input discrepancy according to actual implementation, adjusting the type accordingly 2025-07-22 19:05:38 +02:00
218802214e
properly flatten out application layer at users.users 2025-07-22 19:05:38 +02:00
f43ef615dd
fix application resource type 2025-07-22 19:05:38 +02:00
7cf873e789
fix application-requirements 2025-07-22 19:05:38 +02:00
25006c149d
untangle applications from function type, as they seem to not need the introspection (and may type-check input without it) 2025-07-22 19:05:38 +02:00
0b56a3f197
make packages filter return a list 2025-07-22 19:05:38 +02:00
458058be55
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:05:38 +02:00
75ad6e691e
fix environment deployment 2025-07-22 19:05:38 +02:00

View file

@ -11,7 +11,6 @@ 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 =
@ -79,7 +78,6 @@ 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