This commit is contained in:
zack 2024-10-16 15:40:35 -04:00
parent be89c2a2e0
commit 27699896bf
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35
11 changed files with 467 additions and 167 deletions

View file

@ -0,0 +1,71 @@
{
lib,
inputs,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.tools.emacs;
emacs = with pkgs;
(emacsPackagesFor
emacs30-pgtk)
.emacsWithPackages (epkgs:
with epkgs; [
treesit-grammars.with-all-grammars
vterm
mu4e
]);
in {
options.apps.tools.emacs = {
enable = mkBoolOpt false "Enable Emacs";
# doom = rec {
# enable = mkBoolOpt false;
# forgeUrl = mkOpt types.str "https://github.com";
# repoUrl = mkOpt types.str "${forgeUrl}/doomemacs/doomemacs";
# configRepoUrl = mkOpt types.str "${forgeUrl}/hlissner/.doom.d";
# };
};
config = mkIf cfg.enable {
nixpkgs.overlays = [
inputs.emacs-overlay.overlays.default
];
home.packages = with pkgs; [
## Emacs itself
binutils # native-comp needs 'as', provided by this
emacs # HEAD + native-comp
## Doom dependencies
git
ripgrep
gnutls # for TLS connectivity
## Optional dependencies
fd # faster projectile indexing
imagemagick # for image-dired
pinentry-emacs
zstd # for undo-fu-session/undo-tree compression
## Module dependencies
# :email mu4e
mu
isync
# :checkers spell
(aspellWithDicts (ds: with ds; [en en-computers en-science]))
# :tools editorconfig
editorconfig-core-c # per-project style config
# :tools lookup & :lang org +roam
sqlite
# :lang latex & :lang org (latex previews)
texlive.combined.scheme-medium
# :lang beancount
beancount
fava
# :lang nix
age
];
};
}