nixpkgs/nixos/tests/transmission.nix

25 lines
552 B
Nix
Raw Normal View History

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