about summary refs log tree commit diff
path: root/nix/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'nix/profiles')
-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 = {