diff options
author | Franck Cuny <franck@fcuny.net> | 2024-04-23 07:51:25 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-04-23 07:51:25 -0700 |
commit | 4fa048dcc5728c5a7d8e718e803d99609fc0116c (patch) | |
tree | 77309da777e440d7ceaa4134bbde0aff1ce54504 | |
parent | install aspell (diff) | |
download | world-4fa048dcc5728c5a7d8e718e803d99609fc0116c.tar.gz |
install and configure aspell
-rw-r--r-- | nix/profiles/home-manager/shell.nix | 14 |
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 = { |