refactor(nixos:nixarr): move nixarr module to ooksmedia/modules
This commit is contained in:
		
							parent
							
								
									3fc02285d3
								
							
						
					
					
						commit
						3ccb3b740a
					
				
					 5 changed files with 11 additions and 3 deletions
				
			
		|  | @ -7,6 +7,7 @@ in | |||
| { | ||||
| 	imports = [ | ||||
| 		./hardware-configuration.nix | ||||
| 		./modules | ||||
| 	]; | ||||
| 
 | ||||
| 	ooknet.host = { | ||||
|  |  | |||
							
								
								
									
										5
									
								
								hosts/ooksmedia/modules/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								hosts/ooksmedia/modules/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./nixarr.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										30
									
								
								hosts/ooksmedia/modules/nixarr.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								hosts/ooksmedia/modules/nixarr.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   inherit (lib) mkIf; | ||||
|   admin = config.ooknet.host.admin; | ||||
|   cfg = config.ooknet.services.nixarr; | ||||
| in | ||||
|    | ||||
| { | ||||
|   config = mkIf cfg.enable { | ||||
|     nixarr = { | ||||
|       vpn.enable = false; | ||||
|       openssh.expose.vpn.enable = false; | ||||
|       enable = true; | ||||
|       mediaDir = "/jellyfin"; | ||||
|       stateDir = "/var/lib/nixarr"; | ||||
|       mediaUsers = ["${admin.name}"]; | ||||
| 
 | ||||
|       jellyfin.enable = true; | ||||
|       sonarr.enable = true; | ||||
|       radarr.enable = true; | ||||
|       prowlarr.enable = true; | ||||
|       transmission.enable = true; | ||||
|     }; | ||||
|     fileSystems."/jellyfin" = { | ||||
|       device = "/dev/disk/by-label/jellyfin"; | ||||
|       fsType = "btrfs"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue