nix-config/modules/emacs.nix

27 lines
453 B
Nix
Raw Normal View History

2022-08-05 02:08:32 +02:00
{ pkgs, ... }:
2022-05-25 19:27:42 +02:00
{
environment.systemPackages = with pkgs; [
2022-08-05 02:08:32 +02:00
direnv
2022-05-25 19:27:42 +02:00
];
2022-08-05 02:08:32 +02:00
programs.zsh.shellInit = ''
eval "$(direnv hook zsh)"
'';
programs.bash.shellInit = ''
eval "$(direnv hook bash)"
'';
2022-05-25 19:27:42 +02:00
services.emacs = {
install = true;
enable = false;
2022-08-05 02:08:32 +02:00
package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: with epkgs; [
vterm
2022-08-06 12:22:01 +02:00
pdf-tools
2022-08-05 02:08:32 +02:00
]));
2022-05-25 19:27:42 +02:00
defaultEditor = false;
};
}