From 926bbdd03ea83c7aae41049b7aeda54a6eb96179 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 19 Jul 2023 18:42:56 +0200 Subject: [PATCH] TITAN/fbi-downloader: remove nfs connection --- hosts/TITAN/extras/fbi-downloader.nix | 35 -------------------------- secrets/wireguard-key-upload.age | Bin 627 -> 0 bytes 2 files changed, 35 deletions(-) delete mode 100644 secrets/wireguard-key-upload.age diff --git a/hosts/TITAN/extras/fbi-downloader.nix b/hosts/TITAN/extras/fbi-downloader.nix index 1138197..fa800ed 100644 --- a/hosts/TITAN/extras/fbi-downloader.nix +++ b/hosts/TITAN/extras/fbi-downloader.nix @@ -6,10 +6,6 @@ file = ../../../secrets/transmission-rpc-password.age; mode = "0400"; }; - wireguard-key-upload = { - file = ../../../secrets/wireguard-key-upload.age; - mode = "0400"; - }; }; users.groups.mediamanagers = { @@ -40,37 +36,6 @@ }; credentialsFile = config.age.secrets.transmission-rpc-password.path; }; - systemd.services.transmission = { - after = [ "mnt-media\\x2duploads.mount" ]; - unitConfig = { - RequiresMountsFor = [ "/mnt/media-uploads" ]; - }; - serviceConfig = { - BindPaths = [ "/mnt/media-uploads" ]; - }; - }; networking.firewall.interfaces.tungsten.allowedTCPPorts = [ 9091 ]; - networking.wireguard = { - enable = true; - interfaces.wgupload = { - ips = [ "10.150.0.2/24" ]; - privateKeyFile = config.age.secrets.wireguard-key-upload.path; - allowedIPsAsRoutes = true; - postSetup = "${pkgs.iproute2}/bin/ip link set mtu 1200 wgupload"; - peers = [ - { - publicKey = "apKXnlMtcOe8WqCVXJAXEjzppN+qTmESlt0NjMTaclQ="; - allowedIPs = [ "10.150.0.0/24" ]; - endpoint = "116.202.226.86:6969"; - } - ]; - }; - }; - fileSystems."/mnt/media-uploads" = { - device = "10.150.0.254:/mnt/storage/media/media/uploads"; - fsType = "nfs4"; - noCheck = true; - options = [ "rsize=1024" "wsize=1024" "x-systemd.after=wireguard-wgupload.service" "x-systemd.mount-timeout=10s" ]; - }; } diff --git a/secrets/wireguard-key-upload.age b/secrets/wireguard-key-upload.age deleted file mode 100644 index 5b1950fe4bd449e8489730e62e3127cc79735494..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 627 zcmZ9`J#Um?003a4agaghZp4}<%}MY0ETpj!?t?4m@ljsjU^_l~9B>>5+zUnHV&ZE5 zg#H2(B)#2h&AI7Z{(|S3&H^k*z5F;U=gV|wna|n~N3eagC_*go z37W<^R90w);88KmO)ah#N7f=ZPzNkm@dd68hT6ga1kv`^o?hbJ)p4a4$Ru8rc4~1Y zBi1%SIfE6?tfv`e`(%dWx!RGdcoi9?E6=WKbh`na3N=%ewWBxzkex~@1>mGJcc7$} zoS(%2W7OE4~LiJxOu~{BWivWdt@%=QcQElhm7W%Y@@D$4kZFR_sqw!py z_q|BtR(>dPhS$#QabNVp0mUbZk(U7u!@#H|i*|q@#hw67r-zVk%I{`?_sB+SA|_W; z_W%;pl`xb;^1vs0LQ{+#e&`$ZdZabwgx~{9id+Q4FjQ}jwZMsiBElr;H_;kj5ax{A zrPOxSWX8NZs2~X(H`8O}^Y-`W`(MOgcemfv