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 =
|
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 = [ ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue