mio-ops/roles/transmission.nix

25 lines
664 B
Nix
Raw Normal View History

2020-06-25 01:30:32 +00:00
# NixOps configuration for the hosts running Transmission
{ config, pkgs, lib, ... }:
{
services = {
transmission = {
enable = true; # Enable Transmission
};
cron = {
enable = true;
systemCronJobs = [
"55 0 * * * transmission systemctl enable transmission-daemon"
"00 1 * * * transmission systemctl start transmission-daemon"
"00 7 * * * transmission systemctl stop transmission-daemon"
"05 7 * * * transmission systemctl disable transmission-daemon"
];
};
};
networking.firewall.allowedTCPPorts = [ 9091 ]; # Open the required firewall ports
}