feat(tilo): add jellyfin configuration
This commit is contained in:
		
							parent
							
								
									2921f3f435
								
							
						
					
					
						commit
						5659cceab5
					
				@ -40,6 +40,7 @@
 | 
			
		||||
    services = {
 | 
			
		||||
      calibre.enable = true;
 | 
			
		||||
      endlessh.enable = true;
 | 
			
		||||
      jellyfin.enable = true;
 | 
			
		||||
      plex = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        dataDir = "/tank/web/stacks/plex/plex-config";
 | 
			
		||||
 | 
			
		||||
@ -3,6 +3,7 @@
 | 
			
		||||
    ./calibre.nix
 | 
			
		||||
    ./endlessh.nix
 | 
			
		||||
    ./fwupd.nix
 | 
			
		||||
    ./jellyfin.nix
 | 
			
		||||
    ./plex.nix
 | 
			
		||||
    ./printing.nix
 | 
			
		||||
    ./ssh.nix
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										28
									
								
								system/services/jellyfin.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								system/services/jellyfin.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
with lib; let
 | 
			
		||||
  cfg = config.system.services.jellyfin;
 | 
			
		||||
in {
 | 
			
		||||
  options.system.services.jellyfin = {
 | 
			
		||||
    enable = mkEnableOption "Enable Jellyfin";
 | 
			
		||||
    dataDir = mkOption {
 | 
			
		||||
      type = types.string;
 | 
			
		||||
      default = "/tank/jellyfin/data";
 | 
			
		||||
      example = "/tank/jellyfin/data";
 | 
			
		||||
    };
 | 
			
		||||
    user = mkOption {
 | 
			
		||||
      type = types.string;
 | 
			
		||||
      default = "phundrak";
 | 
			
		||||
    };
 | 
			
		||||
    group = mkOption {
 | 
			
		||||
      type = types.string;
 | 
			
		||||
      default = "users";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  config.services.jellyfin = mkIf cfg.enable {
 | 
			
		||||
    inherit (cfg) enable group user dataDir;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user