{ config, nglib, lib, ... }: { dinit.enable = true; init.services = { deluged = { shutdownOnExit = true; group = lib.mkForce "media"; }; deluge-web = { shutdownOnExit = true; group = lib.mkForce "media"; }; }; services.deluge = { enable = true; configDir = "/config"; web.enable = true; }; users.groups.media = nglib.mkDefaultRec { gid = config.ids.gids.media; members = ["deluge"]; }; }