aboutsummaryrefslogtreecommitdiff
path: root/modules/tlmp/rtorrent.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tlmp/rtorrent.nix')
-rw-r--r--modules/tlmp/rtorrent.nix69
1 files changed, 54 insertions, 15 deletions
diff --git a/modules/tlmp/rtorrent.nix b/modules/tlmp/rtorrent.nix
index bf72a2a..c374122 100644
--- a/modules/tlmp/rtorrent.nix
+++ b/modules/tlmp/rtorrent.nix
@@ -1,31 +1,69 @@
{ config, lib, pkgs, ... }:
{
+ environment.systemPackages = with pkgs; [ libnatpmp gawk dig ];
+
systemd.services = {
- wireguard-mullvad = {
- bindsTo = [ "netns@mullvad.service" ];
- after = [ "netns@mullvad.service" ];
+ # wireguard-mullvad = {
+ # bindsTo = [ "netns@torrent.service" ];
+ # after = [ "netns@torrent.service" ];
+ # };
+
+ wireguard-proton = {
+ bindsTo = [ "netns@torrent.service" ];
+ after = [ "netns@torrent.service" ];
};
rtorrent = {
- bindsTo = [ "wireguard-mullvad.service" ];
- after = [ "wireguard-mullvad.service" ];
- unitConfig.JoinsNamespaceOf = "netns@mullvad.service";
- serviceConfig.PrivateNetwork = true;
+ bindsTo = [ "wireguard-proton.service" ];
+ after = [ "wireguard-proton.service" ];
+ unitConfig.JoinsNamespaceOf = "netns@torrent.service";
+ serviceConfig = {
+ PrivateNetwork = true;
+ LimitNOFILE = 24000;
+ };
+
+ path = with pkgs; [ libnatpmp gawk dig findutils gzip ];
};
};
networking.wireguard.interfaces = {
- mullvad = { # Caring Wasp
- ips = [ "10.67.4.3/32" "fc00:bbbb:bbbb:bb01::4:402/128" ];
- privateKeyFile = "/root/wireguard/privkey";
- interfaceNamespace = "mullvad";
+ # mullvad = { # Caring Wasp
+ # ips = [ "10.67.4.3/32" "fc00:bbbb:bbbb:bb01::4:402/128" ];
+ # privateKeyFile = "/root/wireguard/privkey";
+ # interfaceNamespace = "mullvad";
+
+ # peers = [
+ # # { # de-fra-wg-006.relays.mullvad.net
+ # # publicKey = "nAF0wrLG2+avwQfqxnXhBGPUBCvc3QCqWKH4nK5PfEU=";
+ # # endpoint = "185.209.196.76:51820";
+ # # allowedIPs = [ "0.0.0.0/0" "::/0" ];
+ # # }
+ # { # de-fra-wg-008.relays.mullvad.net
+ # publicKey = "TOS3U/dJPzPnk/qsAx6gHxRVIC2wI5l+tAWaJY2mXzY=";
+ # endpoint = "185.209.196.78:51820";
+ # allowedIPs = [ "0.0.0.0/0" "::/0" ];
+ # }
+ # ];
+ # };
+ proton = { # phaenn
+ ips = [ "10.2.0.2/32" ];
+ # privateKeyFile = "/root/wireguard/proton.key";
+ privateKeyFile = "/root/wireguard/proton_ch.key";
+ interfaceNamespace = "torrent";
peers = [
- { # de-fra-wg-006.relays.mullvad.net
- publicKey = "nAF0wrLG2+avwQfqxnXhBGPUBCvc3QCqWKH4nK5PfEU=";
- endpoint = "185.209.196.76:51820";
- allowedIPs = [ "0.0.0.0/0" "::/0" ];
+ # { # DE#348
+ # publicKey = "hOoBBy//7mddXPz1SybzWB3zK95SQCcPyI/DmxfULXk=";
+ # endpoint = "149.88.102.97:51820";
+ # allowedIPs = [ "0.0.0.0/0" ];
+ # persistentKeepalive = 25;
+ # }
+ { # CH#403
+ publicKey = "R8TfZYSkUM30soIPOVpNsP35qCnnJvJJI9r/VxH5TkQ=";
+ endpoint = "146.70.226.226:51820";
+ allowedIPs = [ "0.0.0.0/0" ];
+ persistentKeepalive = 25;
}
];
};
@@ -33,6 +71,7 @@
services.rtorrent = {
enable = true;
+ package = pkgs.unstable.rtorrent;
# dataDir = "/mnt/media/download";
user = "media";
group = "media";
-annotated-deco' href='/catinator.git/tag/?h=1.3.2'>1.3.2Max Audron-1/+1 2021-06-28>.>: add . as eyeMax Audron-1/+1 2021-06-28add lmr to channels1.3.1Max Audron-1/+1 2021-06-23rewrite sed regex to work cross channelMax Audron-115/+141 2021-06-23add required metadata for publishing to macros crateMax Audron-5/+12 2021-06-23add ability to use path and dotted syntax for functionsMax Audron-8/+39 2021-06-21publish macros subcrateMax Audron-20/+20 2021-06-13release version 1.2.1Max Audron-2/+2 2021-06-13fix crash on message only containing whitespaceMax Audron-1/+4 2021-06-11Release version 1.2.01.2.0Max Audron-2/+2 2021-06-06make pet more compactR0flcopt3r/catinator-pet-commandMax Audron-5/+5 2021-06-05feat: adds pet command.R0flcopt3r-0/+90 2021-06-05feat: send actionR0flcopt3r-1/+9 2021-06-05release version 1.1.0Max Audron-2/+2 2021-06-05document proc macrosMax Audron-4/+97 2021-06-05add intensifyMax Audron-3/+27 2021-06-05add privmsg macroMax Audron-2/+40 2021-06-05fix jb remote urlsMax Audron-4/+4 2021-06-05remove egress gateway configMax Audron-10/+0 2021-06-05update tanka dependenciesMax Audron-8/+8 2021-06-05fix init container nameMax Audron-1/+1 2021-06-05fix tanka dependency pathMax Audron-8/+8 2021-06-05switch to https url for tanka util libMax Audron-2/+2 2021-06-05bump version to 1.0.2Max Audron-2/+2 2021-06-05add tanka ci configurationMax Audron-1/+1 2021-06-05ready tanka deploy for CIMax Audron-32/+69 2021-06-05remove tanka vendoringMax Audron-27651/+0 2021-05-26Release 1.0.1Max Audron-3/+3 2021-05-26fix log breaking once buffer fullMax Audron-2/+33 2021-05-16add deployment stuffMax Audron-6/+27786 2021-05-15add container buildMax Audron-2/+35