dotfiles/modules/services/emacs/default.nix

55 lines
1.5 KiB
Nix

{ config, lib, pkgs, inputs, ... }:
let
emacsVtermGit = with pkgs;
((emacsPackagesNgGen emacsGit).emacsWithPackages (epkgs: [ epkgs.vterm ]));
in {
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
home-manager.users.moritz = {
programs.emacs.enable = true;
programs.emacs.package = emacsVtermGit;
services.emacs.enable = true;
services.emacs.package = emacsVtermGit;
home.packages = with pkgs; [
## Emacs itself
binutils # native-comp needs 'as', provided by this
# emacsPgtkGcc # 28 + pgtk + native-comp
# ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages (epkgs: [
# epkgs.vterm
# ]))
## Doom dependencies
git
(ripgrep.override { withPCRE2 = true; })
gnutls # for TLS connectivity
## Optional dependencies
fd # faster projectile indexing
imagemagick # for image-dired
zstd # for undo-fu-session/undo-tree compression
## Module dependencies
# :checkers spell
# (aspellWithDicts (ds: with ds; [ en en-computers en-science de ]))
hunspell
hunspellDicts.en_GB-ize
hunspellDicts.en_US
hunspellDicts.de_DE
# :checkers grammar
languagetool
# :tools lookup & :lang org +roam
sqlite
# :lang latex & :lang org (latex previews)
texlive.combined.scheme-medium
# :lang nix
nixfmt # for formating nix
# :app everywhere
xdotool
xorg.xwininfo
xclip
xorg.xprop
];
};
}