aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2023-01-26 21:09:10 -0500
committertdro <tdro@users.noreply.github.com>2023-01-26 21:09:31 -0500
commitbe46271fe22c464373c4ba1f8ce95374c3514533 (patch)
tree2d5761aac03f16f1160ab5cb62bfc14d3ecb1c9c
parentd16541946a7d346eb489f7a9e7cb39faaff0f402 (diff)
downloaddotfiles-be46271fe22c464373c4ba1f8ce95374c3514533.tar.gz
dotfiles-be46271fe22c464373c4ba1f8ce95374c3514533.tar.bz2
dotfiles-be46271fe22c464373c4ba1f8ce95374c3514533.zip
.config/nixpkgs: Fix aspell
-rw-r--r--.config/aspell/aspell.conf1
-rw-r--r--.config/nixpkgs/config.nix9
-rwxr-xr-x.local/bin/wrappers/aspell2
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" "$@";