-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathspell-checking.nix
32 lines (26 loc) · 942 Bytes
/
spell-checking.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ pkgs, ...}:
{
environment = {
systemPackages = with pkgs; [
aspell
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
hunspellDicts.en_US-large # Mainly for LibreOffice.
];
# Needed because NixOS no longer automatically exports ASPELL_CONF, and its new patching of
# Aspell to use $NIX_PROFILES seems to not work.
variables.ASPELL_CONF = "conf-dir /etc";
etc."aspell.conf".text = ''
# This requires that the env var ASPELL_CONF is defined to use this file,
# which is done by my custom NixOS module.
# Use the union of whatever multiple packages provide.
data-dir /run/current-system/sw/lib/aspell
# Requires aspellDicts.en-computers package
add-extra-dicts en-computers.rws
# Requires aspellDicts.en-science package
add-extra-dicts en_US-science.rws
'';
};
my.allowedUnfree = [ "aspell-dict-en-science" ];
}