31 lines
473 B
Nix
31 lines
473 B
Nix
|
{
|
||
|
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"];
|
||
|
};
|
||
|
}
|