qbt fixings

This commit is contained in:
2025-07-22 14:48:11 +02:00
parent bfad11de7b
commit b99d2cd3b6

View File

@@ -5,8 +5,8 @@
}: let }: let
cfg = config.server.qbittorrent; cfg = config.server.qbittorrent;
srv = config.server; srv = config.server;
# uid = 899; uid = 899;
# gid = 777; gid = 777;
in { in {
options.server.qbittorrent = { options.server.qbittorrent = {
enable = lib.mkEnableOption "Enable qBittorrent"; enable = lib.mkEnableOption "Enable qBittorrent";
@@ -50,7 +50,6 @@ in {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
qbittorrent = { qbittorrent = {
image = "linuxserver/qbittorrent:latest"; image = "linuxserver/qbittorrent:latest";
user = "994:993";
autoStart = true; autoStart = true;
dependsOn = ["gluetun"]; dependsOn = ["gluetun"];
ports = [ ports = [
@@ -62,14 +61,14 @@ in {
]; ];
volumes = [ volumes = [
"config:/var/lib/qbittorrent" "config:/var/lib/qbittorrent"
"downloads:/home/share/downloads" "downloads:/share/downloads"
]; ];
environmentFiles = [ environmentFiles = [
config.age.secrets.gluetunEnv.path config.age.secrets.gluetunEnv.path
]; ];
environment = { environment = {
# PUID = toString uid; PUID = toString srv.uid;
# PGID = toString gid; PGID = toString srv.gid;
TZ = "Europe/Stockholm"; TZ = "Europe/Stockholm";
WEBUI_PORT = "${builtins.toString cfg.port}"; WEBUI_PORT = "${builtins.toString cfg.port}";
}; };
@@ -100,15 +99,16 @@ in {
}; };
}; };
# users = { users = {
# users.qbittorrent = { users.qbittorrent = {
# inherit uid; inherit uid;
# group = "qbittorrent"; group = "qbittorrent";
# isSystemUser = true; extraGroups = ["${srv.group}"];
# }; isSystemUser = true;
# groups.qbittorrent = { };
# inherit gid; groups.qbittorrent = {
# }; inherit gid;
# }; };
};
}; };
} }