add syncthing
This commit is contained in:
		
							parent
							
								
									95930bc83e
								
							
						
					
					
						commit
						d26ff604e6
					
				
					 3 changed files with 22 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -16,5 +16,6 @@
 | 
			
		|||
    ./gpg.nix
 | 
			
		||||
    ./defaultDesktopPack.nix
 | 
			
		||||
    ./accounts.nix
 | 
			
		||||
    ./syncthing.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										20
									
								
								home/modules/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								home/modules/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
with lib; let
 | 
			
		||||
  cfg = config.local.services.syncthing;
 | 
			
		||||
in {
 | 
			
		||||
  options.local.services.syncthing = {
 | 
			
		||||
    enable = mkEnableOption "syncthing settings";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    services.syncthing = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      tray.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue