fix: add mount dependencies to qbittorrent
All checks were successful
ci / treefmt (push) Successful in 1m33s

This commit is contained in:
Ceferino Patino 2026-06-14 00:03:56 -05:00
commit fa474d844e
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI

View file

@ -42,6 +42,10 @@ in {
hostPath = "/var/lib/qBittorrent";
isReadOnly = false;
};
"/var/lib/qBittorrent/qBittorrent/downloads/autobrr" = {
hostPath = "/var/lib/qBittorrent/qBittorrent/downloads/autobrr";
isReadOnly = false;
};
};
config = {
@ -127,8 +131,16 @@ in {
systemd.services = {
qbittorrent = {
bindsTo = ["openvpn-default.service"];
after = ["openvpn-default.service"];
requires = [
"var-lib-qBittorrent.mount"
"var-lib-qBittorrent-qBittorrent-downloads-autobrr.mount"
];
after = [
"openvpn-default.service"
"var-lib-qBittorrent.mount"
"var-lib-qBittorrent-qBittorrent-downloads-autobrr.mount"
];
};
openvpn-default = {
upholds = ["qbittorrent.service"];