kubernetes-deployments/nixng-configurations/deluge.nix
Pim Kunis abb7a131bc Package Deluge with NixNG
Use same group for all media images
2025-01-05 23:08:24 +01:00

30 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"];
};
}