From 4fa048dcc5728c5a7d8e718e803d99609fc0116c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 23 Apr 2024 07:51:25 -0700 Subject: install and configure aspell --- nix/profiles/home-manager/shell.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'nix/profiles/home-manager') 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 = { -- cgit 1.4.1