my terrible dotfiles
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

attempt to add qbittorrent

+58
+7
nixos/server/nginx.nix
··· 64 64 sslCertificateKey = config.sops.secrets."ssl/key".path; 65 65 locations."/".proxyPass = "http://192.168.0.2:9696"; 66 66 }; 67 + "qbt.forest.monke" = { 68 + onlySSL = true; 69 + http2 = true; 70 + sslCertificate = config.sops.secrets."ssl/cert".path; 71 + sslCertificateKey = config.sops.secrets."ssl/key".path; 72 + locations."/".proxyPass = "http://192.168.0.2:9091"; 73 + }; 67 74 "monke.moe" = { 68 75 onlySSL = true; 69 76 useACMEHost = "monke.moe";
+51
nixos/server/qbittorrent.nix
··· 1 + { pkgs, lib, ... }: 2 + { 3 + users = { 4 + users.qbittorrent = { 5 + group = "qbittorrent"; 6 + isSystemUser = true; 7 + uid = 998; 8 + }; 9 + groups.qbittorrent.gid = 998; 10 + }; 11 + 12 + containers.torrent.bindMounts = { 13 + qbittorrentData = { 14 + hostPath = "/var/lib/qBittorrent"; 15 + mountPoint = "/var/lib/qBittorrent"; 16 + isReadOnly = false; 17 + }; 18 + animu = { 19 + hostPath = "/stuff/animu"; 20 + mountPoint = "/stuff/animu"; 21 + isReadOnly = false; 22 + }; 23 + }; 24 + 25 + forest.container.torrent.config = [ 26 + { 27 + services.qbittorrent = { 28 + enable = true; 29 + /*openFirewall = true; 30 + serverConfig = { 31 + LegalNotice.Accepted = true; 32 + BitTorrent.Session = { 33 + DefaultSavePath = "/stuff/animu/torrents"; 34 + MaxActiveDownloads = 15; 35 + MaxActiveTorrents = 1000; 36 + MaxActiveUploads = 20; 37 + }; 38 + Preferences.WebUI = { 39 + LocalHostAuth = false; 40 + RootFolder = "${pkgs.vuetorrent}/share/vuetorrent"; 41 + ReverseProxySupportEnabled = true; 42 + AuthSubnetWhitelistEnabled = true; 43 + AuthSubnetWhitelist = lib.strings.join " ," [ 44 + "192.168.0.1/32" 45 + ]; 46 + }; 47 + };*/ 48 + }; 49 + } 50 + ]; 51 + }