aplysia: transmission
This commit is contained in:
		
							parent
							
								
									c077724191
								
							
						
					
					
						commit
						c64b898dd8
					
				
							
								
								
									
										24
									
								
								aplysia.nix
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										24
									
								
								aplysia.nix
									
									
									
									
									
								
							@ -56,10 +56,26 @@
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  networking.firewall = {
 | 
			
		||||
    # samba
 | 
			
		||||
    allowedTCPPorts = [ 445 139 ];
 | 
			
		||||
    allowedUDPPorts = [ 137 138 ];
 | 
			
		||||
  services.transmission = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    settings = {
 | 
			
		||||
      download-dir = "/mnt/aplysia/torrents";
 | 
			
		||||
      incomplete-dir = "/mnt/aplysia/torrents";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  networking.firewall = {
 | 
			
		||||
    allowedTCPPorts = [
 | 
			
		||||
      445 139 # samba
 | 
			
		||||
    ];
 | 
			
		||||
    allowedUDPPorts = [
 | 
			
		||||
      137 138 # samba
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    transmission
 | 
			
		||||
    samba
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user