nixos/services/jellyfin.nix
ediblerope c4421b32a8 Force Jellyfin UMask=0002 to override new nixpkgs default
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>
2026-04-16 20:20:01 +01:00

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" ];
};
}