forked from fediversity/fediversity
settle for counting packages over comparing them, solves an infinite recursion
This commit is contained in:
parent
864010a4be
commit
7bdbaf61d8
1 changed files with 3 additions and 9 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue