refactor(nixarr): move nixarr module to media-server role dir
This commit is contained in:
		
							parent
							
								
									f47154c234
								
							
						
					
					
						commit
						71e559b7cf
					
				
					 3 changed files with 16 additions and 3 deletions
				
			
		
							
								
								
									
										5
									
								
								inputs/system/modules/roles/media-server/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								inputs/system/modules/roles/media-server/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ./services | ||||||
|  |   ]; | ||||||
|  | } | ||||||
|  | @ -0,0 +1,5 @@ | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ./nixarr.nix | ||||||
|  |   ]; | ||||||
|  | } | ||||||
|  | @ -1,5 +1,8 @@ | ||||||
| { inputs, ... }: | { config, inputs, ... }: | ||||||
| 
 | 
 | ||||||
|  | let | ||||||
|  |   admin = config.systemModules.host.admin; | ||||||
|  | in | ||||||
|    |    | ||||||
| { | { | ||||||
|   imports = [ inputs.nixarr.nixosModules.default ]; |   imports = [ inputs.nixarr.nixosModules.default ]; | ||||||
|  | @ -7,7 +10,7 @@ | ||||||
|     enable = true; |     enable = true; | ||||||
|     mediaDir = "/jellyfin"; |     mediaDir = "/jellyfin"; | ||||||
|     stateDir = "/var/lib/nixarr"; |     stateDir = "/var/lib/nixarr"; | ||||||
|     mediaUsers = ["ooks"]; |     mediaUsers = ["${admin.name}"]; | ||||||
| 
 | 
 | ||||||
|     jellyfin.enable = true; |     jellyfin.enable = true; | ||||||
|     sonarr.enable = true; |     sonarr.enable = true; | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue