mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-11-04 03:26:57 +01:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| 
								 | 
							
								{ config, lib, pkgs, ... }:
							 | 
						||
| 
								 | 
							
								let
							 | 
						||
| 
								 | 
							
								  cfg = config.my.profiles.sync;
							 | 
						||
| 
								 | 
							
								in
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								  options.my.profiles.sync = with lib; {
							 | 
						||
| 
								 | 
							
								    enable = mkEnableOption "sync profile";
							 | 
						||
| 
								 | 
							
								  };
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  config = lib.mkIf cfg.enable {
							 | 
						||
| 
								 | 
							
								    environment.systemPackages = with pkgs; [
							 | 
						||
| 
								 | 
							
								      croc
							 | 
						||
| 
								 | 
							
								      magic-wormhole
							 | 
						||
| 
								 | 
							
								      nextcloud-client
							 | 
						||
| 
								 | 
							
								      syncthing
							 | 
						||
| 
								 | 
							
								      vdirsyncer
							 | 
						||
| 
								 | 
							
								    ];
							 | 
						||
| 
								 | 
							
								  };
							 | 
						||
| 
								 | 
							
								}
							 |