forked from fabian/nix
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			308 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			308 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   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;
 | |
|     };
 | |
|   };
 | |
| }
 |