mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-14 22:04:27 +01:00
24 lines
552 B
Nix
24 lines
552 B
Nix
import ./make-test-python.nix ({ pkgs, transmission, ... }: {
|
|
name = "transmission";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ coconnor ];
|
|
};
|
|
|
|
nodes.machine = { ... }: {
|
|
imports = [ ../modules/profiles/minimal.nix ];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
|
|
|
security.apparmor.enable = true;
|
|
|
|
services.transmission.enable = true;
|
|
services.transmission.package = transmission;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
start_all()
|
|
machine.wait_for_unit("transmission")
|
|
machine.shutdown()
|
|
'';
|
|
})
|