2019-11-04 23:36:18 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2018-03-18 17:21:24 +00:00
|
|
|
name = "transmission";
|
2021-01-10 19:08:30 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2018-03-18 17:21:24 +00:00
|
|
|
maintainers = [ coconnor ];
|
|
|
|
};
|
|
|
|
|
2022-03-20 23:15:30 +00:00
|
|
|
nodes.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
|
|
|
'';
|
|
|
|
})
|