summary refs log blame commit diff
path: root/nixos/tests/transmission.nix
blob: 34c49bd7f15b8ade06dc529884e35966e067b955 (plain) (tree)




















                                                   
import ./make-test.nix ({ pkgs, ...} : {
  name = "transmission";
  meta = with pkgs.stdenv.lib.maintainers; {
    maintainers = [ coconnor ];
  };

  machine = { config, pkgs, ... }: {
    imports = [ ../modules/profiles/minimal.nix ];

    networking.firewall.allowedTCPPorts = [ 9091 ];

    services.transmission.enable = true;
  };

  testScript =
    ''
      startAll;
      $machine->waitForUnit("transmission");
      $machine->shutdown;
    '';
})