nixos-config/services/jellyfin.nix
Felix Schröter ce5187c2b7
Some checks failed
Test / tests (push) Failing after 1h27m23s
style: reformat & improve some files
2025-01-19 14:58:36 +01:00

25 lines
552 B
Nix

{ config, lib, ... }:
{
services.jellyfin.enable = true;
services.jellyfin.group = "media";
services.jellyfin.openFirewall = true;
# for hardware acceleration
users.users.${config.services.jellyfin.user}.extraGroups = [
"video"
"render"
];
systemd.services.jellyfin.serviceConfig = {
DeviceAllow = lib.mkForce [ "/dev/dri/renderD128" ];
};
services.nginx.virtualHosts = {
"media.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:8096";
};
};
}