Files
nixpkgs/nixos/tests/sabnzbd.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

26 lines
599 B
Nix

{ lib, ... }:
{
name = "sabnzbd";
meta.maintainers = with lib.maintainers; [ jojosch ];
node.pkgsReadOnly = false;
nodes.machine =
{ lib, ... }:
{
services.sabnzbd = {
enable = true;
};
};
testScript = ''
machine.wait_for_unit("sabnzbd.service")
machine.wait_until_succeeds(
"curl --fail -L http://localhost:8080/"
)
_, out = machine.execute("grep SABCTools /var/lib/sabnzbd/logs/sabnzbd.log")
machine.log(out)
machine.fail("grep 'SABCTools disabled: no correct version found!' /var/lib/sabnzbd/logs/sabnzbd.log")
'';
}