summary refs log tree commit diff
path: root/nixos/tests/transmission.nix
blob: f1c238730ebb81aa8041d6ac7369c7136c77588e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import ./make-test.nix ({ pkgs, ...} : {
  name = "transmission";
  meta = with pkgs.stdenv.lib.maintainers; {
    maintainers = [ coconnor ];
  };

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

    networking.firewall.allowedTCPPorts = [ 9091 ];

    services.transmission.enable = true;
  };

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