Files
nixpkgs/nixos/tests/unifi.nix
Leona Maroni cf54549660 treewide: remove in-tree usages of nixpkgs.config.allowUnfree
In multiple NixOS tests, nixpkgs.config.allowUnfree or
nixpkgs.config.allowUnfreePredicate was set. This leads to Hydra building and
redistributing packages with a unfree license. This is a quite huge legal
problem. This changes removes these use cases.
2025-11-10 16:46:19 +01:00

29 lines
503 B
Nix

{ lib, ... }:
{
name = "unifi";
meta.maintainers = with lib.maintainers; [
patryk27
zhaofengli
];
node.pkgsReadOnly = false;
nodes.machine = {
services.unifi.enable = true;
};
testScript = ''
import json
start_all()
machine.wait_for_unit("unifi.service")
machine.wait_for_open_port(8880)
status = json.loads(machine.succeed("curl --silent --show-error --fail-with-body http://localhost:8880/status"))
assert status["meta"]["rc"] == "ok"
'';
}