|
17 | 17 | local_ip = lib.mkOption { default = "192.168.100.1"; }; |
18 | 18 | host_ip = lib.mkOption { default = "192.168.100.2"; }; |
19 | 19 |
|
20 | | - mullvad_ip = lib.mkOption { default = "45.129.56.67"; }; |
| 20 | + mullvad_ip = lib.mkOption { default = "185.204.1.203"; }; |
| 21 | + mullvad_ip_out = lib.mkOption { default = "10.71.204.239"; }; |
21 | 22 | host_mount = lib.mkOption { default = "/mnt/arr"; }; |
22 | 23 | external_interface = |
23 | 24 | lib.mkOption { default = "end0"; }; # WARN: remember to set this |
|
148 | 149 | gid = 6969; |
149 | 150 | }; |
150 | 151 |
|
151 | | - # qbittorrent |
152 | | - users.users.qbittorrent = { |
153 | | - isSystemUser = true; |
154 | | - description = "User for running qbittorrent"; |
| 152 | + services.qbittorrent = { |
| 153 | + enable = true; |
| 154 | + package = pkgs.qbittorrent-nox; |
155 | 155 | group = config.arr.group; |
| 156 | + webuiPort = config.arr.container.torrent_port; |
| 157 | + openFirewall = true; |
| 158 | + profileDir = config.arr.container.torrent_dir; |
| 159 | + extraArgs = [ "--confirm-legal-notice" ]; |
| 160 | + serverConfig = { |
| 161 | + BitTorrent = { |
| 162 | + "Session\\AnonymousModeEnabled" = true; |
| 163 | + "Session\\GlobalMaxRatio" = 0; |
| 164 | + "Session\\Interface" = "wg-mullvad"; |
| 165 | + "Session\\InterfaceAddress" = config.arr.container.mullvad_ip_out; |
| 166 | + "Session\\InterfaceName" = "wg-mullvad"; |
| 167 | + }; |
| 168 | + Preferences = { |
| 169 | + WebUI = { |
| 170 | + Username = "admin"; |
| 171 | + Password_PBKDF2 = "@ByteArray(FB1GXcS9ElicV6MtPtttow==:rDRk7bG4xKsBCLylLwo4bC/cx8s8joHrll8CP1PrNj7XyBtSwjCTqpNjHaIjXa/xmYag6ySPORInk9bV8h4UaQ==)"; |
| 172 | + }; |
| 173 | + }; |
| 174 | +}; |
156 | 175 | }; |
157 | | - |
158 | | - systemd.services.qbittorrent = { |
159 | | - after = [ "network.target" ]; |
160 | | - description = "Qbittorrent Web"; |
161 | | - wantedBy = [ "multi-user.target" ]; |
162 | | - path = [ pkgs.qbittorrent-nox ]; |
163 | | - serviceConfig = { |
164 | | - ExecStart = '' |
165 | | - ${pkgs.qbittorrent-nox}/bin/qbittorrent-nox --webui-port=${ |
166 | | - toString config.arr.container.torrent_port |
167 | | - } --profile=${config.arr.container.torrent_dir} |
168 | | - ''; |
169 | | - User = "qbittorrent"; |
170 | | - Group = config.arr.group; |
171 | | - MemoryMax = "1G"; |
172 | | - Restart = "always"; |
173 | | - UMask = "0002"; |
174 | | - }; |
175 | | - }; |
| 176 | +systemd.services.qbittorrent.serviceConfig.UMask = "0002"; |
176 | 177 |
|
177 | 178 | services.prowlarr = { |
178 | 179 | enable = true; |
|
185 | 186 | openFirewall = true; |
186 | 187 | dataDir = config.arr.container.radarr_dir; |
187 | 188 | }; |
| 189 | +systemd.services.radarr.serviceConfig.UMask = "0002"; |
188 | 190 |
|
189 | 191 | services.sonarr = { |
190 | 192 | enable = true; |
191 | 193 | group = config.arr.group; |
192 | 194 | openFirewall = true; |
193 | 195 | dataDir = config.arr.container.sonarr_dir; |
194 | 196 | }; |
| 197 | +systemd.services.sonarr.serviceConfig.UMask = "0002"; |
195 | 198 |
|
196 | 199 | services.bazarr = { |
197 | 200 | enable = true; |
198 | 201 | group = config.arr.group; |
199 | 202 | openFirewall = true; |
200 | 203 | }; |
| 204 | +systemd.services.bazarr.serviceConfig.UMask = "0002"; |
201 | 205 |
|
202 | 206 | services.lidarr = { |
203 | 207 | enable = false; |
|
0 commit comments