File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ with lib; let
1212 xml = import ./xml.nix { inherit lib ; } ;
1313
1414 networkXmlContent = xml . mkXmlContent "NetworkConfiguration" cfg . network ;
15+ brandingXmlContent = xml . mkXmlContent "BrandingOptions" cfg . branding ;
16+ encodingXmlContent = xml . mkXmlContent "EncodingOptions" cfg . encoding ;
1517in {
1618 imports = [
1719 ./options
4749
4850 environment . etc = {
4951 "jellyfin/network.xml.template" . text = networkXmlContent ;
52+ "jellyfin/branding.xml.template" . text = brandingXmlContent ;
53+ "jellyfin/encoding.xml.template" . text = encodingXmlContent ;
5054 } ;
5155
5256 systemd . services . jellyfin = {
5761
5862 restartTriggers = [
5963 networkXmlContent
64+ brandingXmlContent
65+ encodingXmlContent
6066 ] ;
6167
6268 serviceConfig =
7278
7379 ExecStartPre = pkgs . writeShellScript "jellyfin-setup-config" ''
7480 set -eu
81+
7582 ${ pkgs . coreutils } /bin/install -m 640 /etc/jellyfin/network.xml.template '${ cfg . configDir } /network.xml'
83+ ${ pkgs . coreutils } /bin/install -m 640 /etc/jellyfin/branding.xml.template '${ cfg . configDir } /branding.xml'
84+ ${ pkgs . coreutils } /bin/install -m 640 /etc/jellyfin/encoding.xml.template '${ cfg . configDir } /encoding.xml'
7685 '' ;
7786
7887 ExecStart =
You can’t perform that action at this time.
0 commit comments