{ config, ... }: {
  networking.firewall.allowedTCPPorts = [ 9091 ];
  services.transmission = {
    enable = true;
    downloadDirPermissions = "775";
    openFirewall = true;
    settings = {
      alt-speed-down = 512;
      alt-speed-enabled = true;
      alt-speed-time-begin = 360;
      alt-speed-time-day = 127;
      alt-speed-time-enabled = true;
      alt-speed-time-end = 1380;
      alt-speed-up = 256;
      ratio-limit-enabled = true;
      rpc-bind-address = "0.0.0.0";
      rpc-enabled = true;
      rpc-port = 9091;
      rpc-host-whitelist = "${config.networking.hostName}";
      rpc-whitelist = "10.100.0.*,10.0.0.*,192.168.100.*";
    };
  };
}
