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, ... }: {