nix-config/home/features/desktop/emacs.nix
2024-10-25 12:35:26 +02:00

34 lines
885 B
Nix

{ pkgs, config, lib, ... }: {
programs.emacs = {
enable = true;
extraPackages = epkgs: [ epkgs.vterm ];
};
# Only run emacsclient
services.emacs.enable = false;
home = {
sessionPath = [ "${config.xdg.configHome}/emacs/bin" ];
sessionVariables = {
DOOMDIR = "${config.xdg.configHome}/doom";
DOOMLOCALDIR = "${config.xdg.dataHome}/doom";
EMACSDIR = "${config.xdg.configHome}/emacs";
DOOMPROFILELOADFILE = "${config.xdg.configHome}/doom-profiles-load.el";
};
};
xdg.configFile."doom".source = ../../../doom_files;
xdg.configFile."emacs".source = builtins.fetchGit {
url = "https://github.com/doomemacs/doomemacs";
rev = "c8a5e6ec1ca85a35f94d6c820c2fd8888373c2ae";
};
home.packages = with pkgs; [
# doom emacs dependencies
binutils
gnutls
fd
imagemagick
zstd
editorconfig-core-c
];
}