diff --git a/modules/server/media/qbittorrent.nix b/modules/server/media/qbittorrent.nix index 8f7db789..da255e9d 100644 --- a/modules/server/media/qbittorrent.nix +++ b/modules/server/media/qbittorrent.nix @@ -75,7 +75,12 @@ in { networking.firewall = mkIf cfg.openFirewall { allowedTCPPorts = [ cfg.torrentPort cfg.port ]; }; - users.users.qbittorrent = { }; + users.users.qbittorrent = { + home = cfg.dataDir; + useDefaultShell = true; + group = cfg.group; + isSystemUser = true; + }; users.groups.media = { }; systemd.services.qbittorrent = {