summaryrefslogtreecommitdiff
path: root/modules/emacs.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2022-08-05 02:08:32 +0200
committerGrigory Shipunov2022-08-05 02:08:32 +0200
commit693849fbafdbc25cf29282bf12f71ad0e8e0dbbc (patch)
treedfc770a4601c3adac6245470541866cb475b8fb5 /modules/emacs.nix
parent5547ef23bc1b9f0da6bb63f314fa260d9c191655 (diff)
emacs: use nix-community overlay
Diffstat (limited to 'modules/emacs.nix')
-rw-r--r--modules/emacs.nix22
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;
};