nixpkgs now sets UMask=0077 on the Jellyfin service, conflicting with our override that ensures media-group writes. Wrapping with lib.mkForce restores the intended permission bits. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
441 B
Nix
16 lines
441 B
Nix
#jellyfin.nix
|
|
{ config, pkgs, lib, ... }:
|
|
{
|
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
|
# Jellyfin
|
|
services.jellyfin = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
# Ensure Jellyfin can write thumbnails/artwork to media directories
|
|
systemd.services.jellyfin.serviceConfig.UMask = lib.mkForce "0002";
|
|
|
|
users.users.jellyfin.extraGroups = [ "media" "video" "render" ];
|
|
};
|
|
}
|