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-10-22 06:32:26 +01:00
|
|
|
imports = [ ./formatters.nix ./lsp_servers.nix ];
|
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-10-19 06:33:56 +01:00
|
|
|
services.git-sync = {
|
|
|
|
enable = true;
|
|
|
|
repositories.org = {
|
|
|
|
path = "${config.home.homeDirectory}/Org";
|
|
|
|
uri = "git+https://git.xenia.me.uk/xenia/Org.git";
|
|
|
|
};
|
|
|
|
};
|
2023-09-14 17:09:21 +01:00
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs29-pgtk;
|
|
|
|
};
|
2023-10-12 07:21:40 +01:00
|
|
|
stylix.targets.emacs.enable = false;
|
2023-09-12 08:33:05 +01:00
|
|
|
home = {
|
2023-09-12 21:39:44 +01:00
|
|
|
inherit sessionVariables;
|
2023-10-18 07:57:41 +01:00
|
|
|
sessionPath = [ "${config.xdg.configHome}/emacs/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
|
2023-10-15 17:02:24 +01:00
|
|
|
rustup
|
2023-10-08 14:56:55 +01:00
|
|
|
texlive.combined.scheme-medium
|
2023-10-18 16:04:12 +01:00
|
|
|
python3
|
2023-10-08 14:56:55 +01:00
|
|
|
python3Packages.cython
|
|
|
|
python3Packages.pyflakes
|
|
|
|
python3Packages.nose
|
|
|
|
python3Packages.pytest
|
|
|
|
nodePackages.stylelint
|
|
|
|
];
|
2023-09-12 08:33:05 +01:00
|
|
|
};
|
2023-07-26 15:45:24 +01:00
|
|
|
}
|