2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
|
|
name = "transmission";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ coconnor ];
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { ... }: {
|
2020-04-24 23:36:52 +00:00
|
|
|
imports = [ ../modules/profiles/minimal.nix ];
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
security.apparmor.enable = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
services.transmission.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
start_all()
|
|
|
|
machine.wait_for_unit("transmission")
|
|
|
|
machine.shutdown()
|
|
|
|
'';
|
|
|
|
})
|