94 lines
2.1 KiB
Nix
94 lines
2.1 KiB
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
emacs = with pkgs;
|
|
((emacsPackagesFor emacsGcc).emacsWithPackages
|
|
(epkgs: [ epkgs.vterm epkgs.emacsql-sqlite3 ]));
|
|
cfg = config.modules.editors.emacs;
|
|
in {
|
|
options.modules.editors = {
|
|
emacs = mkOption {
|
|
default = true;
|
|
type = types.bool;
|
|
example = false;
|
|
};
|
|
};
|
|
config = mkIf cfg {
|
|
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
|
|
|
|
home-manager.users.moritz = {
|
|
home.sessionPath = [ "/home/moritz/.config/emacs/bin/" ];
|
|
services.emacs = {
|
|
enable = true;
|
|
package = emacs;
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
## Emacs itself
|
|
binutils # native-comp needs 'as', provided by this
|
|
emacs
|
|
|
|
## 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 ]))
|
|
(hunspellWithDicts [
|
|
hunspellDicts.en_GB-ize
|
|
hunspellDicts.en_US
|
|
hunspellDicts.de_DE
|
|
])
|
|
|
|
# :checkers grammar
|
|
languagetool
|
|
|
|
# :tools lookup & :lang org +roam
|
|
sqlite
|
|
wordnet
|
|
graphviz
|
|
|
|
# :lang latex & :lang org (latex previews)
|
|
texlive.combined.scheme-full
|
|
texlab
|
|
|
|
# :lang nix
|
|
nixfmt # for formating nix
|
|
rnix-lsp
|
|
|
|
# :lang markdown
|
|
pandoc
|
|
|
|
# :app everywhere
|
|
xdotool
|
|
xorg.xwininfo
|
|
xclip
|
|
xorg.xprop
|
|
|
|
# :lang python
|
|
nodePackages.pyright
|
|
python-dev
|
|
|
|
# :email
|
|
mu
|
|
isync
|
|
|
|
# :lang haskell
|
|
haskell-language-server
|
|
(haskellPackages.ghcWithPackages (p:
|
|
# general
|
|
[ p.brittany ] ++
|
|
# xmonad
|
|
[ p.xmonad p.xmonad-contrib p.xmonad-extras p.xmobar ]))
|
|
];
|
|
};
|
|
};
|
|
}
|