1
0
Fork 0

Services: fix qBittorrent

This commit is contained in:
Aires 2024-09-10 20:19:40 -04:00
parent a374b25753
commit c05c4f0a14
3 changed files with 5 additions and 5 deletions

View file

@ -196,7 +196,7 @@ in
ports = [ config.secrets.hosts.dimaga.ssh.port ]; ports = [ config.secrets.hosts.dimaga.ssh.port ];
}; };
transmission = { transmission = {
enable = true; enable = false;
home = "${services-root}/transmission"; home = "${services-root}/transmission";
url = config.secrets.services.transmission.url; url = config.secrets.services.transmission.url;
auth = { auth = {

View file

@ -9,7 +9,7 @@ let
cfg = config.aux.system.services.qbittorrent; cfg = config.aux.system.services.qbittorrent;
UID = 850; UID = 850;
GID = 850; GID = 850;
package = pkgs.qbittorrent; package = pkgs.qbittorrent-nox;
port = 8080; port = 8080;
in in
{ {
@ -52,7 +52,7 @@ in
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwnoxarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
''; '';
}; };
}; };
@ -62,7 +62,7 @@ in
# based on the plex.nix service module and # based on the plex.nix service module and
# https://github.com/qbittorrent/qBittorrent/blob/master/dist/unix/systemd/qbittorrent-nox%40.service.in # https://github.com/qbittorrent/qBittorrent/blob/master/dist/unix/systemd/qbittorrent-nox%40.service.in
description = "qBittorrent service"; description = "qBittorrent service";
documentation = [ "man:qbittorrent(1)" ]; documentation = [ "man:qbittorrent-nox(1)" ];
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
unitConfig.RequiresMountsFor = cfg.home; unitConfig.RequiresMountsFor = cfg.home;

@ -1 +1 @@
Subproject commit 75970a6034cc961a749d07d9c51ef9f8f8f48848 Subproject commit 967332abfd758e3922cb676fd594a220f9b0fa8f