From 05457d3712ef74b6c6b28e678145bc132a286419 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Mon, 11 Nov 2024 21:18:09 +0530 Subject: [PATCH] layne: remove protonvpn --- hosts/layne/network.nix | 6 ------ hosts/layne/services/apps/transmission.nix | 21 +-------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/hosts/layne/network.nix b/hosts/layne/network.nix index 8746f6f..fa622c8 100644 --- a/hosts/layne/network.nix +++ b/hosts/layne/network.nix @@ -32,10 +32,4 @@ "10.10.10.14/24" ]; }; - - networking.wg-quick = { - interfaces = { - ProtonVPN.configFile = config.sops.secrets."proton/layne".path; - }; - }; } diff --git a/hosts/layne/services/apps/transmission.nix b/hosts/layne/services/apps/transmission.nix index 1e70c8c..561396d 100644 --- a/hosts/layne/services/apps/transmission.nix +++ b/hosts/layne/services/apps/transmission.nix @@ -28,7 +28,7 @@ in "--lpd" ]; settings = { - peer-port = 36840; + peer-port = 42069; rpc-bind-address = "127.0.0.1"; rpc-port = 9091; rpc-host-whitelist = "transmission.labs.adtya.xyz"; @@ -60,23 +60,4 @@ in }; }; systemd.services.transmission.unitConfig.RequiresMountsFor = [ "/mnt/data" ]; - systemd.timers.transmission-port-mapping = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnCalendar = "*:*:00/30"; - Unit = "transmission-port-mapping.service"; - }; - }; - - systemd.services.transmission-port-mapping = { - script = '' - set -eu - ${pkgs.libnatpmp}/bin/natpmpc -g 10.2.0.1 -a 1 0 tcp 60 - ${pkgs.libnatpmp}/bin/natpmpc -g 10.2.0.1 -a 1 0 udp 60 - ''; - serviceConfig = { - Type = "oneshot"; - User = "root"; - }; - }; }