2023-09-13 06:17:51 +01:00
|
|
|
{ config, pkgs, inputs, ... }:
|
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 {
|
|
|
|
xdg.configFile.emacs.source = inputs.doom-emacs;
|
2023-08-28 12:48:56 +01:00
|
|
|
programs.emacs.enable = true;
|
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-09-12 08:33:05 +01:00
|
|
|
packages = with pkgs; [
|
|
|
|
# Emacs dependencies
|
|
|
|
coreutils
|
2023-09-12 16:16:55 +01:00
|
|
|
gnutls
|
|
|
|
# git-with-svn
|
|
|
|
ripgrep
|
2023-09-12 08:33:05 +01:00
|
|
|
cmake
|
|
|
|
fd
|
2023-09-12 16:16:55 +01:00
|
|
|
imagemagick
|
|
|
|
zstd
|
2023-09-12 08:33:05 +01:00
|
|
|
graphviz
|
|
|
|
zip
|
|
|
|
unzip
|
2023-08-28 12:48:56 +01:00
|
|
|
|
2023-09-12 08:33:05 +01:00
|
|
|
# Language-specific requirements
|
2023-09-12 16:16:55 +01:00
|
|
|
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
|
2023-09-12 08:33:05 +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-09-12 08:33:05 +01:00
|
|
|
# Formatters
|
|
|
|
nixfmt
|
|
|
|
beautysh
|
|
|
|
black
|
|
|
|
nodePackages.fixjson
|
|
|
|
fprettify
|
|
|
|
shellharden
|
|
|
|
shfmt
|
|
|
|
stylua
|
|
|
|
python3Packages.mdformat
|
|
|
|
html-tidy
|
|
|
|
nodePackages.js-beautify
|
2023-08-28 12:48:56 +01:00
|
|
|
|
2023-09-12 08:33:05 +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-07-26 15:45:24 +01:00
|
|
|
}
|