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