lots of stuff:
Moved syncthing to system service Restic actually works now removed some old system configs. formatting.
This commit is contained in:
		
							parent
							
								
									c42e33770e
								
							
						
					
					
						commit
						f9632c8fc3
					
				
					 18 changed files with 99 additions and 291 deletions
				
			
		
							
								
								
									
										20
									
								
								configs/nixos/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								configs/nixos/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  inputs,
 | 
			
		||||
  configLib,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  services.syncthing = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    user = config.host.user;
 | 
			
		||||
    group = "users";
 | 
			
		||||
    overrideDevices = false;
 | 
			
		||||
    overrideFolders = false;
 | 
			
		||||
    openDefaultPorts = true;
 | 
			
		||||
    systemService = true;
 | 
			
		||||
    dataDir="/home/${config.host.user}/Sync";
 | 
			
		||||
    configDir="/home/${config.host.user}/.local/state/syncthing";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue