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
				
			
		| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./nixarr.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										25
									
								
								inputs/system/modules/roles/media-server/services/nixarr.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								inputs/system/modules/roles/media-server/services/nixarr.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,25 @@
 | 
			
		|||
{ config, inputs, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  admin = config.systemModules.host.admin;
 | 
			
		||||
in
 | 
			
		||||
  
 | 
			
		||||
{
 | 
			
		||||
  imports = [ inputs.nixarr.nixosModules.default ];
 | 
			
		||||
  nixarr = {
 | 
			
		||||
    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