Package Deluge with NixNG
Use same group for all media images
This commit is contained in:
parent
a22c34716e
commit
abb7a131bc
15 changed files with 212 additions and 22 deletions
30
nixng-configurations/deluge.nix
Normal file
30
nixng-configurations/deluge.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
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"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue