kubernetes-deployments/nixng-configurations/sonarr.nix

23 lines
337 B
Nix
Raw Normal View History

{
lib,
config,
nglib,
...
}: {
2024-12-23 14:54:56 +00:00
dinit.enable = true;
init.services.sonarr = {
shutdownOnExit = true;
group = lib.mkForce "media";
};
2024-12-23 14:54:56 +00:00
services.sonarr = {
enable = true;
dataDir = "/config";
};
users.groups.media = nglib.mkDefaultRec {
gid = config.ids.gids.media;
members = ["sonarr"];
};
2024-12-23 14:54:56 +00:00
}