2023-09-13 06:45:28 +01:00
|
|
|
{ config, pkgs, doom-emacs, ... }:
|
2023-09-12 21:39:44 +01:00
|
|
|
let
|
2023-09-13 06:17:51 +01:00
|
|
|
sessionVariables = rec {
|
|
|
|
DOOMLOCALDIR = "${config.home.homeDirectory}/.local/share/doomemacs";
|
|
|
|
DOOMPROFILELOADFILE = "${DOOMLOCALDIR}/load.el";
|
2023-09-12 21:39:44 +01:00
|
|
|
};
|
|
|
|
in {
|
2023-09-24 12:17:51 +01:00
|
|
|
xdg.configFile = {
|
|
|
|
emacs.source = doom-emacs;
|
|
|
|
doom.source = ./doom;
|
|
|
|
};
|
2023-09-13 07:30:02 +01:00
|
|
|
systemd.user = { inherit sessionVariables; };
|
2023-09-14 17:09:21 +01:00
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs29-pgtk;
|
|
|
|
};
|
2023-09-12 08:33:05 +01:00
|
|
|
home = {
|
2023-09-12 21:39:44 +01:00
|
|
|
inherit sessionVariables;
|
2023-09-12 11:59:27 +01:00
|
|
|
sessionPath = [ "$HOME/.config/emacs/bin" "$HOME/.emacs.d/bin" ];
|
2023-10-08 14:56:55 +01:00
|
|
|
packages = with pkgs; [
|
|
|
|
# Additional/Compiled Emacs packages
|
|
|
|
emacsPackages.mu4e
|
|
|
|
emacsPackages.vterm
|
|
|
|
emacsPackages.pdf-tools
|
2023-08-28 12:48:56 +01:00
|
|
|
|
2023-10-08 14:56:55 +01:00
|
|
|
# Emacs dependencies
|
|
|
|
coreutils
|
|
|
|
gnutls
|
|
|
|
ripgrep
|
|
|
|
cmake
|
|
|
|
fd
|
|
|
|
imagemagick
|
|
|
|
zstd
|
|
|
|
graphviz
|
|
|
|
zip
|
|
|
|
unzip
|
2023-08-28 12:48:56 +01:00
|
|
|
|
2023-10-08 14:56:55 +01:00
|
|
|
# Language-specific requirements
|
|
|
|
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
|
2023-10-11 16:38:00 +01:00
|
|
|
languagetool
|
|
|
|
wordnet
|
2023-10-08 14:56:55 +01:00
|
|
|
findutils
|
|
|
|
sqlite
|
|
|
|
pandoc
|
|
|
|
gfortran
|
|
|
|
texlive.combined.scheme-medium
|
|
|
|
python3
|
|
|
|
isort
|
|
|
|
python3Packages.cython
|
|
|
|
python3Packages.pyflakes
|
|
|
|
python3Packages.nose
|
|
|
|
python3Packages.pytest
|
|
|
|
nodePackages.stylelint
|
2023-08-28 12:48:56 +01:00
|
|
|
|
2023-10-08 14:56:55 +01:00
|
|
|
# Formatters
|
|
|
|
nixfmt
|
|
|
|
beautysh
|
|
|
|
black
|
|
|
|
nodePackages.fixjson
|
|
|
|
fprettify
|
|
|
|
shellharden
|
|
|
|
shfmt
|
|
|
|
stylua
|
|
|
|
python3Packages.mdformat
|
|
|
|
html-tidy
|
|
|
|
nodePackages.js-beautify
|
2023-10-08 14:18:25 +01:00
|
|
|
|
2023-10-08 14:56:55 +01:00
|
|
|
# LSP servers
|
|
|
|
nixd
|
|
|
|
fortls
|
|
|
|
shellcheck
|
|
|
|
marksman
|
|
|
|
luajitPackages.lua-lsp
|
|
|
|
texlab
|
|
|
|
nodePackages.pyright
|
|
|
|
nodePackages.yaml-language-server
|
|
|
|
nodePackages.bash-language-server
|
|
|
|
nodePackages.vscode-html-languageserver-bin
|
|
|
|
nodePackages.vscode-css-languageserver-bin
|
|
|
|
nodePackages.vscode-json-languageserver-bin
|
|
|
|
nodePackages.dockerfile-language-server-nodejs
|
|
|
|
];
|
2023-09-12 08:33:05 +01:00
|
|
|
};
|
2023-07-26 15:45:24 +01:00
|
|
|
}
|