Group service modules by category (media, network, vpn, identity, dev, desktop) to make the growing services/ dir easier to navigate. containers.nix stays at the top level since it's a shared backend, not a single-category service. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
19 lines
722 B
Nix
19 lines
722 B
Nix
{ ... }:
|
|
|
|
# Sonarr — TV library manager, feeds off SABnzbd/Prowlarr. dataDir points at
|
|
# the config migrated from the old ZimaOS docker stack (indexers/download
|
|
# client/history already set up). Unlike prowlarr, this module uses a static
|
|
# `sonarr` user (no DynamicUser) and only auto-chowns dataDir when it's the
|
|
# module's own default path — since we point at a pre-existing migrated dir,
|
|
# chown it by hand once after first deploy:
|
|
# chown -R sonarr:sonarr /mnt/data/AppData/sonarr/config
|
|
{
|
|
services.sonarr = {
|
|
enable = true;
|
|
dataDir = "/mnt/data/AppData/sonarr/config";
|
|
};
|
|
|
|
# Write access to the shared library/downloads dirs (owned darman:users).
|
|
users.users.sonarr.extraGroups = [ "users" ];
|
|
}
|