System/applications/emacs.nix

28 lines
607 B
Nix
Raw Normal View History

2022-04-21 15:18:47 -04:00
{ config, pkgs, unstable, doomEmacs, ... }:
2021-12-20 13:37:26 -05:00
{
# Install emacs
2022-04-21 15:18:47 -04:00
environment.systemPackages = [
2022-05-02 20:13:18 -04:00
# For markdown rendering
pkgs.pythonPackages.grip
# For graph generation
pkgs.graphviz
2021-12-20 13:37:26 -05:00
];
2022-04-21 15:18:47 -04:00
# Utilize home-manager
home-manager.users.nathan = {
# Nixify doomEmacs
imports = [ doomEmacs ];
programs.doom-emacs = {
2022-05-09 21:16:01 -04:00
enable = true;
2022-04-21 15:18:47 -04:00
doomPrivateDir = ../doom.d;
2022-05-09 21:16:01 -04:00
emacsPackage = unstable.emacsPgtkNativeComp;
2022-04-21 15:18:47 -04:00
};
# Startup service
services.emacs = {
2022-04-22 14:59:06 -04:00
enable = pkgs.stdenv.isLinux;
2022-04-21 15:18:47 -04:00
client.enable = true;
defaultEditor = true;
};
};
2021-12-20 13:37:26 -05:00
}