{ config, lib, pkgs, ... }: with lib; let cfg = config.nixfiles.modules.aspell; in { options.nixfiles.modules.aspell.enable = mkEnableOption "Whether to enable GNU Aspell."; config = mkIf cfg.enable { hm.home = { file.".aspell.conf".text = '' personal /dev/null repl /dev/null ''; packages = with pkgs; [(aspellWithDicts (p: with p; [en ru]))]; }; }; }