some qbittorrent

This commit is contained in:
Casper V. Kristensen 2024-04-17 23:20:12 +02:00
parent 588db7e044
commit 33844633fd

View file

@ -4,22 +4,31 @@
secrets, secrets,
... ...
}: { }: {
# systemd.services.qbittorrent = { # TODO
# description = "qBittorrent service"; virtualisation.oci-containers.containers = {
# documentation = ["man:qbittorrent-nox(1)"]; qbittorrent = {
# wantedBy = ["multi-user.target"]; # https://docs.linuxserver.io/images/docker-qbittorrent
# wants = ["multi-user.target"]; image = "lscr.io/linuxserver/qbittorrent:4.5.2";
# after = ["network-online.target" "nss-lookup.target"]; # outbound_addr ensures we use the sigma-p2p IP address for outbound
# serviceConfig = { # connections. port_handler allows the application access to the real
# Type = "exec"; # source IP addresses.
# User = "flatpak"; # TODO: use systemd service with `RestrictNetworkInterfaces = "wg-sigma-p2p"` instead
# Group = "users"; # https://github.com/NixOS/nixpkgs/pull/287923
# ExecStart = pkgs.writers.writeBash "asd" '' extraOptions = ["--network=slirp4netns:outbound_addr=wg-sigma-p2p,port_handler=slirp4netns"];
# while true; do ${pkgs.curl}/bin/curl --connect-timeout 1 ip.caspervk.net; echo; sleep 1; done environment = {
# ''; TZ = "Europe/Copenhagen";
# RestrictNetworkInterfaces = "wg-sigma-p2p"; };
# }; ports = [
# }; # WebUI (localhost for Caddy reverse proxy) TODO
# "127.0.0.1:80:80"
"${secrets.sigma.sigma-p2p-ip-address}:1337:1337/tcp"
"${secrets.sigma.sigma-p2p-ip-address}:1337:1337/udp"
];
volumes = [
"/mnt/lol/:/data/downloads/"
];
};
};
systemd.network = { systemd.network = {
config = { config = {