mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 09:42:11 +01:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
|   | # spell-checking | ||
|  | { config, lib, options, pkgs, ... }: | ||
|  | let | ||
|  |   cfg = config.my.system.spell-check; | ||
|  | in | ||
|  | { | ||
|  |   options.my.system.spell-check = with lib; { | ||
|  |     enable = mkEnableOption "spell-check configuration"; | ||
|  |   }; | ||
|  | 
 | ||
|  |   config = lib.mkIf cfg.enable { | ||
|  |     environment.systemPackages = with pkgs; [ | ||
|  |       aspell | ||
|  |       aspellDicts.en | ||
|  |       aspellDicts.en-computers | ||
|  |       aspellDicts.en-science | ||
|  |     ]; | ||
|  |   }; | ||
|  | } |