1
Fork 0

Move qbit data dir

This commit is contained in:
prescientmoon 2024-05-29 03:18:16 +02:00
parent 41bbce1937
commit 1bf44a018c
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -4,7 +4,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
port = 8417; port = 8417;
dataDir = "/persist/data/${config.users.users.pilot.home}/media"; dataDir = "/persist/data/media";
configDir = "/persist/state/var/lib/qbittorrent"; configDir = "/persist/state/var/lib/qbittorrent";
vpnConfigDir = "/persist/state/var/lib/openvpn"; vpnConfigDir = "/persist/state/var/lib/openvpn";
in in
@ -14,7 +14,10 @@ in
services.nginx.virtualHosts."qbit.moonythm.dev" = services.nginx.virtualHosts."qbit.moonythm.dev" =
config.satellite.proxy port { }; config.satellite.proxy port { };
systemd.tmpfiles.rules = [ "d ${dataDir}" "d ${configDir}" ]; systemd.tmpfiles.rules = [
"d ${dataDir} 755 ${config.users.users.pilot.home} users"
"d ${configDir}"
];
virtualisation.oci-containers.containers.qbittorrent = { virtualisation.oci-containers.containers.qbittorrent = {
image = "linuxserver/qbittorrent:latest"; image = "linuxserver/qbittorrent:latest";
extraOptions = [ "--network=container:openvpn-client" ]; extraOptions = [ "--network=container:openvpn-client" ];