diff --git a/keys/mullvad b/keys/mullvad index dd2afb3..cf8c465 100644 Binary files a/keys/mullvad and b/keys/mullvad differ diff --git a/modules/servermodules/arr/arr.nix b/modules/servermodules/arr/arr.nix index 4b7c807..e566ca3 100644 --- a/modules/servermodules/arr/arr.nix +++ b/modules/servermodules/arr/arr.nix @@ -29,11 +29,17 @@ in group = mediaGroup; settings = { incomplete-dir-enabled = true; - incomplete-dir = "/media/torrents/.incomplete"; + download-dir = "/mnt/sbox/torrents"; + incomplete-dir = "/mnt/sbox//torrents/.incomplete"; blocklist-enabled = true; blocklist-url = "https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz"; utp-enabled = true; bind-address-ipv4 = "10.64.108.193"; + rpc-port = 3027; + rpc-whitelist-enabled = false; + rpc-whitelist = "192.168.1.*,127.0.0.1,localhost,10.100.0.*"; + rpc-authentication-required = false; + rpc-bind-address = "0.0.0.0"; #Bind to own IP }; }; @@ -45,12 +51,18 @@ in openFirewall = false; }; + services.sonarr = { + enable = true; + group = mediaGroup; + openFirewall = false; + }; + environment.systemPackages = [ pkgs.flood-for-transmission ]; systemd.tmpfiles.rules = [ - "d /media/torrents 0775 torrenter media -" - "d /media/torrents/.incomplete 0775 torrenter media -" + "d /mnt/sbox/torrents 0775 torrenter media -" + "d /mnt/sbox/torrents/.incomplete 0775 torrenter media -" ]; } diff --git a/systems/ren/volumes.nix b/systems/ren/volumes.nix index 9957561..a97a2cd 100644 --- a/systems/ren/volumes.nix +++ b/systems/ren/volumes.nix @@ -20,4 +20,16 @@ "config=/etc/rclone-mnt.conf" ]; }; + + fileSystems."/mnt/sbox2" = { + device = "//u504615.your-storagebox.de/backup"; + fsType = "cifs"; + options = + let + # this line prevents hanging on network split + automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"; + + in + [ "${automount_opts},credentials=/etc/nixos/smb-secrets" ]; + }; }