mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
24 lines
482 B
Nix
24 lines
482 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "transmission";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ coconnor ];
|
|
};
|
|
|
|
machine = { ... }: {
|
|
imports = [ ../modules/profiles/minimal.nix ];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
|
|
|
security.apparmor.enable = true;
|
|
|
|
services.transmission.enable = true;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
start_all()
|
|
machine.wait_for_unit("transmission")
|
|
machine.shutdown()
|
|
'';
|
|
})
|