From b99d2cd3b6093178019317e3f2b6c19add14d5c1 Mon Sep 17 00:00:00 2001 From: cnst Date: Tue, 22 Jul 2025 14:48:11 +0200 Subject: [PATCH] qbt fixings --- modules/server/qbittorrent/default.nix | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/server/qbittorrent/default.nix b/modules/server/qbittorrent/default.nix index d30374d6..0ce4f166 100644 --- a/modules/server/qbittorrent/default.nix +++ b/modules/server/qbittorrent/default.nix @@ -5,8 +5,8 @@ }: let cfg = config.server.qbittorrent; srv = config.server; - # uid = 899; - # gid = 777; + uid = 899; + gid = 777; in { options.server.qbittorrent = { enable = lib.mkEnableOption "Enable qBittorrent"; @@ -50,7 +50,6 @@ in { virtualisation.oci-containers.containers = { qbittorrent = { image = "linuxserver/qbittorrent:latest"; - user = "994:993"; autoStart = true; dependsOn = ["gluetun"]; ports = [ @@ -62,14 +61,14 @@ in { ]; volumes = [ "config:/var/lib/qbittorrent" - "downloads:/home/share/downloads" + "downloads:/share/downloads" ]; environmentFiles = [ config.age.secrets.gluetunEnv.path ]; environment = { - # PUID = toString uid; - # PGID = toString gid; + PUID = toString srv.uid; + PGID = toString srv.gid; TZ = "Europe/Stockholm"; WEBUI_PORT = "${builtins.toString cfg.port}"; }; @@ -100,15 +99,16 @@ in { }; }; - # users = { - # users.qbittorrent = { - # inherit uid; - # group = "qbittorrent"; - # isSystemUser = true; - # }; - # groups.qbittorrent = { - # inherit gid; - # }; - # }; + users = { + users.qbittorrent = { + inherit uid; + group = "qbittorrent"; + extraGroups = ["${srv.group}"]; + isSystemUser = true; + }; + groups.qbittorrent = { + inherit gid; + }; + }; }; }