nixos-config/services/jellyfin.nix

23 lines
552 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2021-05-27 12:38:34 +02:00
{
services.jellyfin.enable = true;
2021-05-27 12:38:34 +02:00
services.jellyfin.group = "media";
2021-05-27 11:24:03 +02:00
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" ];
};
2021-05-27 11:24:03 +02:00
services.nginx = {
2021-05-27 12:29:17 +02:00
virtualHosts."media.felschr.com" = {
2021-05-27 11:24:03 +02:00
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:8096";
};
};
}