feat: emacs config init

This commit is contained in:
Thiago Sposito 2026-01-10 19:54:14 -03:00
parent 9d852d120e
commit 95afe7044a
Signed by: thiago
GPG key ID: 3065EA73A976D430
5 changed files with 323 additions and 102 deletions

View file

@ -1,37 +1,28 @@
{ pkgs, ... }:
{ pkgs, lib, config, ... }:
{
home.packages = with pkgs; [
emacs-all-the-icons-fonts
sbcl
];
programs.emacs = {
enable = true;
extraPackages = epkgs: with epkgs; [
use-package
magit
org
org-roam
evil
evil-collection
which-key
counsel
ivy
swiper
doom-themes
nord-theme
projectile
flycheck
company
lsp-mode
lsp-ui
dap-mode
treemacs
treemacs-evil
treemacs-projectile
sly
];
extraConfig = builtins.readFile ./init.el;
};
}
package = pkgs.emacs.override {
withNativeCompilation = true;
};
};
home.packages = with pkgs; [
cmake
emacs-all-the-icons-fonts
emacsPackages.evil
emacsPackages.vterm
emacsPackages.treemacs
emacsPackages.doom
sbcl
];
home.activation.linkDoomConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ ! -e "${config.home.homeDirectory}/.config/doom" ]; then
$DRY_RUN_CMD mkdir -p "${config.home.homeDirectory}/.config"
$DRY_RUN_CMD ln -sfn "/home/thiago/.config/nix-conf/home-manager/emacs/doom" "${config.home.homeDirectory}/.config/doom"
fi
'';
}