added jellyfin config.
This commit is contained in:
		
							parent
							
								
									0909ad3b26
								
							
						
					
					
						commit
						fd79b1e2a2
					
				
					 2 changed files with 22 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								configs/nixos/jellyfin.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								configs/nixos/jellyfin.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
{
 | 
			
		||||
  inputs,
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  services.jellyfin = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    openFirewall = true;
 | 
			
		||||
    dataDir = "/storage/jellyfin";
 | 
			
		||||
  };
 | 
			
		||||
  services.nginx.virtualHosts."media.venberg.xyz" = {
 | 
			
		||||
    enableACME = true;
 | 
			
		||||
    forceSSL = true;
 | 
			
		||||
    locations."/" = {
 | 
			
		||||
      proxyPass = "http://localhost:8096";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -18,6 +18,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
			
		|||
    ../../configs/nixos/tailscale.nix
 | 
			
		||||
    ../../configs/nixos/sshd.nix
 | 
			
		||||
    ../../configs/nixos/secrets.nix
 | 
			
		||||
    ../../configs/nixos/jellyfin.nix
 | 
			
		||||
    ({
 | 
			
		||||
      config,
 | 
			
		||||
      pkgs,
 | 
			
		||||
| 
						 | 
				
			
			@ -98,6 +99,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
			
		|||
      };
 | 
			
		||||
 | 
			
		||||
      hardware.amdgpu.initrd.enable = true;
 | 
			
		||||
      hardware.graphics.enable = true;
 | 
			
		||||
 | 
			
		||||
      # Open ports in the firewall.
 | 
			
		||||
      # networking.firewall.allowedTCPPorts = [ ... ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue