My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/nixos/tests/transmission.nix

23 lines
488 B

import ./make-test-python.nix ({ 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 =
''
start_all()
machine.wait_for_unit("transmission")
machine.shutdown()
'';
})