2019-11-04 23:36:18 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2018-03-18 17:21:24 +00:00
|
|
|
name = "transmission";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ coconnor ];
|
|
|
|
};
|
|
|
|
|
2018-07-20 21:56:59 +01:00
|
|
|
machine = { ... }: {
|
2018-03-18 17:21:24 +00:00
|
|
|
imports = [ ../modules/profiles/minimal.nix ];
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
|
|
|
|
2020-06-05 10:57:36 +01:00
|
|
|
security.apparmor.enable = true;
|
|
|
|
|
2018-03-18 17:21:24 +00:00
|
|
|
services.transmission.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2019-11-04 23:36:18 +00:00
|
|
|
start_all()
|
|
|
|
machine.wait_for_unit("transmission")
|
|
|
|
machine.shutdown()
|
2018-03-18 17:21:24 +00:00
|
|
|
'';
|
|
|
|
})
|