New nixpkgs defaults for the *arr services set UMask=0022, which conflicts with the media-group-writable overrides. Wrap with lib.mkForce alongside the existing Jellyfin fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
584 B
Nix
24 lines
584 B
Nix
# services/bazarr.nix
|
|
{ config, pkgs, lib, ... }:
|
|
{
|
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
|
|
|
# Bazarr
|
|
services.bazarr = {
|
|
enable = true;
|
|
openFirewall = true; # Opens port 7878
|
|
dataDir = "/var/lib/bazarr";
|
|
user = "bazarr";
|
|
group = "media";
|
|
};
|
|
|
|
# Ensure subtitles written by bazarr are group-writable
|
|
systemd.services.bazarr.serviceConfig.UMask = lib.mkForce "0002";
|
|
|
|
users.users.bazarr = {
|
|
isSystemUser = true;
|
|
group = "media";
|
|
extraGroups = [ "media" ];
|
|
};
|
|
};
|
|
}
|