summaryrefslogtreecommitdiffstats
path: root/nixos/tests/transmission.nix
blob: 406b0df8599d150a6c691f097f78087893c99ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ pkgs, ... }:
{
  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;
    };

  testScript =
    { nodes, ... }:
    #python
    ''
      start_all()
      machine.wait_for_unit("transmission")
      machine.shutdown()
    '';
}