From 3baf18f435a4cd9b07648d8a37cac4aa81cad68a Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 18 Jan 2025 22:36:13 -0500 Subject: [PATCH] Install aspell into the emacs_full environment. --- nix/configuration/roles/emacs/default.nix | 32 +++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/nix/configuration/roles/emacs/default.nix b/nix/configuration/roles/emacs/default.nix index eb82469..fcdf4a2 100644 --- a/nix/configuration/roles/emacs/default.nix +++ b/nix/configuration/roles/emacs/default.nix @@ -39,7 +39,6 @@ let e_shorthand = pkgs.writeShellScriptBin "e" '' exec ${pkgs.emacs29-pgtk}/bin/emacs "''${@}" ''; - in { imports = [ ]; @@ -49,12 +48,41 @@ in environment.systemPackages = with pkgs; [ plainmacs e_shorthand - emacs29-pgtk + emacs_full clang # To compile tree-sitter grammars nixd # nix language server nixfmt-rfc-style # auto-formatting nix files through nixd ]; + nixpkgs.overlays = [ + (final: prev: { + emacs_full = pkgs.buildEnv { + name = "emacs_full"; + paths = with pkgs; [ + emacs29-pgtk + (pkgs.aspellWithDicts ( + dicts: with dicts; [ + en + en-computers + ] + )) + ]; + pathsToLink = [ + "/share/man" + "/share/doc" + "/share/info" + "/bin" + "/etc" + ]; + extraOutputsToInstall = [ + "man" + "doc" + "info" + ]; + }; + }) + ]; + home-manager.users.talexander = { pkgs, ... }: {