emacs: use nix-community overlay

This commit is contained in:
Grigory Shipunov 2022-08-05 02:08:32 +02:00
parent 5547ef23bc
commit 693849fbaf
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
3 changed files with 60 additions and 10 deletions

View file

@ -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;
};