nix-config/hosts/sisyphe/features/multimedia/transmission.nix
harry123 8a522c525c Refactor Nix configurations to update URLs from hypervirtual.world to rougebordeaux.xyz
- Updated flake.nix to change Alejandra and other inputs to follow the new repository structure.
- Modified uptime-kuma configurations to reflect the new domain for Caddy reverse proxy settings.
- Adjusted various multimedia services in Sisyphe to use the new domain for Caddy virtual hosts.
- Disabled the Sabnzbd service in Sisyphe and updated its Caddy configuration.
- Corrected multiple service configurations in Sisyphe to point to the new domain, including Grafana, Nextcloud, and Synapse Matrix.
- Ensured all references to hypervirtual.world are replaced with rougebordeaux.xyz across all relevant files.
2025-05-08 16:02:47 +02:00

53 lines
1.2 KiB
Nix

{
config,
secrets,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.downloads.transmission;
in
{
options = {
downloads.transmission = {
directory = mkOption {
type = lib.types.str;
default = "/srv/Multimedia";
};
};
};
config = {
sops.secrets.transmission = {
sopsFile = "${secrets}/secrets/transmission.json";
path = "/var/lib/secrets/transmission/settings.json";
};
# torrenting apps
services.transmission = {
enable = true;
openFirewall = true;
openRPCPort = true;
credentialsFile = config.sops.secrets.transmission.path;
webHome = pkgs.flood-for-transmission;
settings = {
rpc-bind-address = "0.0.0.0";
rpc-whitelist-enabled = false;
rpc-authentication-required = true;
download-dir = "${cfg.directory}/Torrents";
ratio-limit-enabled = true;
alt-speed-time-enabled = true;
alt-speed-time-begin = "480";
alt-speed-time-end = "1320";
};
};
services.caddy.virtualHosts."http://transmission.sisyphe.normandy.rougebordeaux.xyz".extraConfig =
''
reverse_proxy :9091
'';
};
}