25 lines
664 B
Nix
25 lines
664 B
Nix
# 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
|
|
|
|
}
|