jellyfin: implement the skip intro patch
This commit is contained in:
		
							parent
							
								
									b0f5c30aaf
								
							
						
					
					
						commit
						d649bd5a32
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		|  | @ -1,8 +1,27 @@ | ||||||
|  | { pkgs, ... }: | ||||||
|  | 
 | ||||||
| { | { | ||||||
|   services.jellyfin = { |   services.jellyfin = { | ||||||
|     enable = true; |     enable = true; | ||||||
|     openFirewall = true; |     openFirewall = true; | ||||||
|     user = "wizardlink"; |     user = "wizardlink"; | ||||||
|  |     package = pkgs.jellyfin.override { | ||||||
|  |       jellyfin-web = pkgs.jellyfin-web.overrideAttrs ( | ||||||
|  |         final: prev: { | ||||||
|  |           installPhase = '' | ||||||
|  |             runHook preInstall | ||||||
|  | 
 | ||||||
|  |             # Inject the skip intro button script. | ||||||
|  |             sed -i "s#</head>#<script src=\"configurationpage?name=skip-intro-button.js\"></script></head>#" dist/index.html | ||||||
|  | 
 | ||||||
|  |             mkdir -p $out/share | ||||||
|  |             cp -a dist $out/share/jellyfin-web | ||||||
|  | 
 | ||||||
|  |             runHook postInstall | ||||||
|  |           ''; | ||||||
|  |         } | ||||||
|  |       ); | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   services.jellyseerr = { |   services.jellyseerr = { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue