2023-10-23 17:28:05 +01:00
|
|
|
{ config, pkgs, crafted-emacs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./formatters.nix ./lsp_servers.nix ./tree-sitter.nix ];
|
|
|
|
stylix.targets.emacs.enable = false;
|
2023-09-24 12:17:51 +01:00
|
|
|
xdg.configFile = {
|
2023-10-23 17:28:05 +01:00
|
|
|
"emacs/init.el".source = ./init.el;
|
|
|
|
"emacs/modules".source = ./modules;
|
|
|
|
"emacs/crafted-emacs".source = crafted-emacs;
|
2023-09-24 12:17:51 +01:00
|
|
|
};
|
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;
|
2023-10-23 17:28:05 +01:00
|
|
|
package = with pkgs;
|
|
|
|
((emacsPackagesFor emacs29-pgtk).emacsWithPackages (epkgs:
|
|
|
|
with epkgs; [
|
|
|
|
# Theme
|
|
|
|
doom-themes
|
|
|
|
|
|
|
|
# crafted-completion-packages
|
|
|
|
cape
|
|
|
|
consult
|
|
|
|
corfu
|
|
|
|
corfu-terminal
|
|
|
|
embark
|
|
|
|
embark-consult
|
|
|
|
marginalia
|
|
|
|
orderless
|
|
|
|
vertico
|
|
|
|
|
|
|
|
# crafted-ide-packages
|
|
|
|
treesit-auto
|
|
|
|
editorconfig
|
|
|
|
aggressive-indent
|
|
|
|
ibuffer-project
|
|
|
|
|
|
|
|
# crafted-org-packages
|
|
|
|
denote
|
|
|
|
org-appear
|
|
|
|
|
|
|
|
# crafted-ui-packages
|
|
|
|
all-the-icons
|
|
|
|
elisp-demos
|
|
|
|
helpful
|
|
|
|
|
|
|
|
# crafted-workspaces-packages
|
|
|
|
tabspaces
|
|
|
|
|
|
|
|
# crafted-writing-packages
|
|
|
|
markdown-mode
|
|
|
|
pandoc-mode
|
|
|
|
auctex
|
|
|
|
auctex-latexmk
|
|
|
|
|
|
|
|
# Additional packages
|
|
|
|
magit
|
|
|
|
vterm
|
|
|
|
nix-mode
|
|
|
|
]));
|
2023-09-14 17:09:21 +01:00
|
|
|
};
|
2023-09-12 08:33:05 +01:00
|
|
|
home = {
|
2023-10-08 14:56:55 +01:00
|
|
|
packages = with pkgs; [
|
|
|
|
# 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
|
|
|
nodePackages.stylelint
|
|
|
|
];
|
2023-09-12 08:33:05 +01:00
|
|
|
};
|
2023-07-26 15:45:24 +01:00
|
|
|
}
|