summaryrefslogtreecommitdiff
path: root/modules/nixfiles/aspell.nix
blob: f39794441e5903f04d5777f014327109eb712cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  lib,
  pkgs,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.aspell;
in {
  options.nixfiles.modules.aspell.enable =
    mkEnableOption "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]))];
    };
  };
}