Move qbit data dir
This commit is contained in:
parent
41bbce1937
commit
1bf44a018c
|
@ -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" ];
|
||||||
|
|
Loading…
Reference in a new issue