settle for counting packages over comparing them, solves an infinite recursion

This commit is contained in:
Kiara Grouwstra 2025-07-22 17:50:39 +02:00
parent 864010a4be
commit 7bdbaf61d8
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -71,6 +71,7 @@ in
}; };
policy = policy =
{ ... }: { ... }:
{ {
_class = "fediversity-resource-policy"; _class = "fediversity-resource-policy";
options = { options = {
@ -164,22 +165,15 @@ in
{ {
inherit (fediversity) inherit (fediversity)
example-configuration example-configuration
example-deployment
; ;
num-packages = lib.lists.length fediversity.example-deployment.users.users.operator.packages;
}; };
expected = { expected = {
example-configuration = { example-configuration = {
enable = true; enable = true;
applications.hello.enable = true; applications.hello.enable = true;
}; };
example-deployment = { num-packages = 1;
_class = "nixos";
users.users.operator = {
isNormalUser = true;
extraGroups = [ ];
packages = [ ];
};
};
}; };
}; };
} }