about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-23 07:51:25 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-23 07:51:25 -0700
commit4fa048dcc5728c5a7d8e718e803d99609fc0116c (patch)
tree77309da777e440d7ceaa4134bbde0aff1ce54504
parentinstall aspell (diff)
downloadworld-4fa048dcc5728c5a7d8e718e803d99609fc0116c.tar.gz
install and configure aspell
-rw-r--r--nix/profiles/home-manager/shell.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/nix/profiles/home-manager/shell.nix b/nix/profiles/home-manager/shell.nix
index c375b45..83be24d 100644
--- a/nix/profiles/home-manager/shell.nix
+++ b/nix/profiles/home-manager/shell.nix
@@ -1,4 +1,4 @@
-{ pkgs, self, ... }: {
+{ pkgs, self, config, ... }: {
 
   home.packages = with pkgs; [
     # shell utils
@@ -34,12 +34,24 @@
     self.packages.${pkgs.system}.slocalc
   ];
 
+  xdg = {
+    configFile = {
+      "aspell/config".text = ''
+        local-data-dir ${pkgs.aspell}/lib/aspell
+        data-dir ${pkgs.aspellDicts.en}/lib/aspell
+        personal ${config.xdg.configHome}/aspell/en_US.personal
+        repl ${config.xdg.configHome}/aspell/en_US.repl
+      '';
+    };
+  };
+
   home.sessionVariables = {
     EDITOR = "emacsclient -a=";
     VISUAL = "emacsclient -a=";
     LESS = "-FRSXM";
     LESSCHARSET = "utf-8";
     PAGER = "less";
+    ASPELL_CONF = "conf ${config.xdg.configHome}/aspell/config;";
   };
 
   programs = {