My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/nixos/tests/sabnzbd.nix

22 lines
522 B

import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "sabnzbd";
meta = with pkgs.lib; {
maintainers = with maintainers; [ jojosch ];
};
nodes.machine = { pkgs, ... }: {
services.sabnzbd = {
enable = true;
};
# unrar is unfree
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "unrar" ];
};
testScript = ''
machine.wait_for_unit("sabnzbd.service")
machine.wait_until_succeeds(
"curl --fail -L http://localhost:8080/"
)
'';
})