diff options
Diffstat (limited to 'modules/emacs.nix')
| -rw-r--r-- | modules/emacs.nix | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/modules/emacs.nix b/modules/emacs.nix index 52fdc52..30332cf 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -1,20 +1,24 @@ -{ lib, pkgs, ... }: +{ pkgs, ... }: { environment.systemPackages = with pkgs; [ - # language servers - clang-tools - clang - - sqlite - graphviz + direnv ]; + programs.zsh.shellInit = '' + eval "$(direnv hook zsh)" + ''; + programs.bash.shellInit = '' + eval "$(direnv hook bash)" + ''; + + services.emacs = { install = true; enable = false; - # pure gtk, native compiled emacs with vterm and pdf-tools - package = with pkgs; ((emacsPackagesFor emacs).emacsWithPackages (epkgs: [ epkgs.vterm ])); + package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: with epkgs; [ + vterm + ])); defaultEditor = false; }; |
