adding audiobookshelf to nix
This commit is contained in:
		
							parent
							
								
									543c78db6c
								
							
						
					
					
						commit
						0f3c4b3e1b
					
				
					 2 changed files with 18 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								modules/audiobookshelf.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								modules/audiobookshelf.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					{ pkgs, lib, config, ... }:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					with lib;
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  services.audiobookshelf = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    host = "0.0.0.0";
 | 
				
			||||||
 | 
					    port = "8999";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  services.caddy.virtualHosts = {
 | 
				
			||||||
 | 
					      "abs.cochrun.xyz".extraConfig = ''
 | 
				
			||||||
 | 
					        reverse_proxy localhost:${services.audiobookshelf.port}
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
      ../../modules/base.nix
 | 
					      ../../modules/base.nix
 | 
				
			||||||
      ../../modules/servers.nix
 | 
					      ../../modules/servers.nix
 | 
				
			||||||
      ../../pkgs/base-packages.nix
 | 
					      ../../pkgs/base-packages.nix
 | 
				
			||||||
 | 
					      ../../modules/audiobookshelf.nix
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  networking.hostName = "dalinar"; # Define your hostname.
 | 
					  networking.hostName = "dalinar"; # Define your hostname.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue