nixpkgs/nixos/tests/transmission.nix
2018-04-05 22:07:49 +02:00

22 lines
458 B
Nix

import ./make-test.nix ({ pkgs, ...} : {
name = "transmission";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ coconnor ];
};
machine = { config, pkgs, ... }: {
imports = [ ../modules/profiles/minimal.nix ];
networking.firewall.allowedTCPPorts = [ 9091 ];
services.transmission.enable = true;
};
testScript =
''
startAll;
$machine->waitForUnit("transmission");
$machine->shutdown;
'';
})