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-13 07:30:02 +01:00
|
|
|
services.emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = config.programs.emacs.package;
|
|
|
|
defaultEditor = true;
|
|
|
|
client.enable = true;
|
|
|
|
socketActivation.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
|
2023-09-14 17:09:21 +01:00
|
|
|
emacsPackages.mu4e
|
2023-09-20 09:00:22 +01:00
|
|
|
emacsPackages.vterm
|
2023-09-12 08:33:05 +01:00
|
|
|
coreutils
|
2023-09-12 16:16:55 +01:00
|
|
|
gnutls
|
|
|
|
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
|
|
|
}
|