From cb19e05827603a58b380a17f54350b06056b3721 Mon Sep 17 00:00:00 2001 From: cnst Date: Mon, 21 Jul 2025 12:09:43 +0200 Subject: [PATCH] user and group fixings 0.1 --- modules/server/qbittorrent/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/server/qbittorrent/default.nix b/modules/server/qbittorrent/default.nix index 85374dbd..89997911 100644 --- a/modules/server/qbittorrent/default.nix +++ b/modules/server/qbittorrent/default.nix @@ -17,6 +17,16 @@ in { default = 8080; description = "The port to host qBittorrent on."; }; + uid = lib.mkOption { + type = lib.types.int; + default = 899; + description = "The uid of qBittorrent."; + }; + gid = lib.mkOption { + type = lib.types.int; + default = 898; + description = "The gid qBittorrent."; + }; homepage.name = lib.mkOption { type = lib.types.str; default = "qBittorrent"; @@ -98,12 +108,12 @@ in { }; users = { users.qbittorrent = { - uid = srv.uid; + uid = cfg.uid; group = "qbittorrent"; isSystemUser = true; }; groups.qbittorrent = { - gid = srv.gid; + gid = cfg.gid; }; }; };