mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 09:42:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			683 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			683 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # manages and downloads films
 | |
| { config, lib, ... }:
 | |
| let
 | |
|   cfg = config.my.services.jellyseerr;
 | |
|   inherit (config.networking) domain;
 | |
| in
 | |
| {
 | |
|   options.my.services.jellyseerr = with lib; {
 | |
|     enable = mkEnableOption "Sonarr for films management";
 | |
|   };
 | |
| 
 | |
|   config = lib.mkIf cfg.enable {
 | |
|     services.jellyseerr = {
 | |
|       enable = true;
 | |
|     };
 | |
| 
 | |
|     my.services.nginx.virtualHosts = [
 | |
|       {
 | |
|         subdomain = "view";
 | |
|         inherit (config.services.jellyseerr) port;
 | |
|       }
 | |
|     ];
 | |
| 
 | |
|     webapps.apps.jellyseerr = {
 | |
|       dashboard = {
 | |
|         name = "View";
 | |
|         category = "media";
 | |
|         icon = "users-viewfinder";
 | |
|         url = "https://view.${domain}";
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 | 
