diff options
-rw-r--r-- | .config/aspell/aspell.conf | 1 | ||||
-rw-r--r-- | .config/nixpkgs/config.nix | 9 | ||||
-rwxr-xr-x | .local/bin/wrappers/aspell | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/.config/aspell/aspell.conf b/.config/aspell/aspell.conf new file mode 100644 index 0000000..47eb382 --- /dev/null +++ b/.config/aspell/aspell.conf @@ -0,0 +1 @@ +data-dir /home/thedro/.nix-profile/lib/aspell diff --git a/.config/nixpkgs/config.nix b/.config/nixpkgs/config.nix index 48e441f..7b39eaf 100644 --- a/.config/nixpkgs/config.nix +++ b/.config/nixpkgs/config.nix @@ -398,10 +398,11 @@ in Dictionary = pkgs.buildEnv { name = "dictionary"; paths = [ - aspell - aspellDicts.en - aspellDicts.en-computers - aspellDicts.en-science + (aspellWithDicts (dictionary: [ + dictionary.en + dictionary.en-computers + dictionary.en-science + ])) hunspell hunspellDicts.en_US-large hyphen diff --git a/.local/bin/wrappers/aspell b/.local/bin/wrappers/aspell new file mode 100755 index 0000000..78fddd0 --- /dev/null +++ b/.local/bin/wrappers/aspell @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which aspell --all | grep --invert-match "local/bin" | head -n 1) --conf "$HOME/.config/aspell/aspell.conf" "$@"; |