2023-09-23 13:27:17 +02:00
|
|
|
import ./make-test-python.nix ({ pkgs, transmission, ... }: {
|
2018-03-18 18:21:24 +01:00
|
|
|
name = "transmission";
|
2021-01-10 20:08:30 +01:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2018-03-18 18:21:24 +01:00
|
|
|
maintainers = [ coconnor ];
|
|
|
|
};
|
|
|
|
|
2022-03-21 00:15:30 +01:00
|
|
|
nodes.machine = { ... }: {
|
2018-03-18 18:21:24 +01:00
|
|
|
imports = [ ../modules/profiles/minimal.nix ];
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
|
|
|
|
2020-06-05 11:57:36 +02:00
|
|
|
security.apparmor.enable = true;
|
|
|
|
|
2018-03-18 18:21:24 +01:00
|
|
|
services.transmission.enable = true;
|
2023-09-23 13:27:17 +02:00
|
|
|
services.transmission.package = transmission;
|
2018-03-18 18:21:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2019-11-05 00:36:18 +01:00
|
|
|
start_all()
|
|
|
|
machine.wait_for_unit("transmission")
|
|
|
|
machine.shutdown()
|
2018-03-18 18:21:24 +01:00
|
|
|
'';
|
|
|
|
})
|