From 1bf44a018cb6e9021cb268bfb45be4199680cfe8 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Wed, 29 May 2024 03:18:16 +0200 Subject: [PATCH] Move qbit data dir --- hosts/nixos/lapetus/services/qbittorrent.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/nixos/lapetus/services/qbittorrent.nix b/hosts/nixos/lapetus/services/qbittorrent.nix index f70f3f2..a05fcc7 100644 --- a/hosts/nixos/lapetus/services/qbittorrent.nix +++ b/hosts/nixos/lapetus/services/qbittorrent.nix @@ -4,7 +4,7 @@ { config, pkgs, ... }: let port = 8417; - dataDir = "/persist/data/${config.users.users.pilot.home}/media"; + dataDir = "/persist/data/media"; configDir = "/persist/state/var/lib/qbittorrent"; vpnConfigDir = "/persist/state/var/lib/openvpn"; in @@ -14,7 +14,10 @@ in services.nginx.virtualHosts."qbit.moonythm.dev" = 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 = { image = "linuxserver/qbittorrent:latest"; extraOptions = [ "--network=container:openvpn-client" ];